[Puppet Users] Re: Why does my Puppet Master randomly revoke my Agent's certificate?

2014-09-02 Thread Jason Oakley
Thanks. I'll look at that, but the only thing running on my Master server is Puppet Master. My Agent server only has Minecraft, PHP, MySQL, WordPress.. nothing using certificates at all. On Wednesday, 3 September 2014 00:55:20 UTC+10, jcbollinger wrote: > > > > On Monday, September 1, 2014 5:57:

Re: [Puppet Users] custom facter fact not available from client

2014-09-02 Thread Mike Reed
Hey Nan, Thank you for pointing out the issue around "puts" and why the fact was never actually obtaining a value. That makes sense and definitely fixes my problem. Also, the irb is awesome and has significantly cut down my debugging time. Thank you for the quick response and for your help.

Re: [Puppet Users] Re: Good PupptMaster/Passenger Guide w OSX 10 .9

2014-09-02 Thread keith . staley
::Thumbs up K On Tuesday, September 2, 2014 9:05:01 AM UTC-4, thbe wrote: > > Install C6, install EPEL and SCL repository, install Foreman repository > and foreman-installer. Execute foreman-installer and the system is ready to > run (http://theforeman.org/manuals/1.5/quickstart_guide.html

[Puppet Users] Theory deployment of puppet master

2014-09-02 Thread Frans Thamura
Hi all I am seeking a diagram for deployment mechanism of puppet manifest/module in puppet master can anyone give illustration and how the manifest and their modules work with puppet agent thx F -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-09-02 Thread jcbollinger
On Tuesday, September 2, 2014 11:14:27 AM UTC-5, Nigel Kersten wrote: > > > > > On Wed, Aug 27, 2014 at 8:10 AM, jcbollinger > wrote: > >> >> >> On Tuesday, August 26, 2014 6:24:57 PM UTC-5, Nigel Kersten wrote: >> > [...] > >> I am well aware of all the old hilarity surrounding determining t

Re: [Puppet Users] How best to accomplish geographic location of clients?

2014-09-02 Thread Nan Liu
On Tue, Sep 2, 2014 at 1:31 PM, randal cobb wrote: > Hello all, > > I have a small problem I'm trying to resolve, and I'm bowing to the > masters for suggestions. Our development organization uses VMware and > desktop VMs to perform development efforts; I've come up with mechanisms > to popula

Re: [Puppet Users] Hierarchy and Structured Facts

2014-09-02 Thread Felix Frank
On 08/30/2014 12:26 PM, Poil wrote: > Hi, > > I've go a fact "cfn_roles" that is an array > Is it possible to use it in hierarchy ? > > For exemple : > > * my fact : > cfn_roles: > - apache > - mysql > > And my hierarchy > |:hierarchy: > - "%{::roles}"| > hiera will try each entry of cfn_role

Re: [Puppet Users] Puppet server getting closed source?

2014-09-02 Thread Felix Frank
On 09/02/2014 04:50 PM, Thomas Müller wrote: > Hi > > Just heard some rumors on the floor that future Puppet products will only > be available as closed source. > > Is there some official statement from Puppetlabs? > > > - Thomas You're hanging out with those Chef crowds too much ;-) I call com

Re: [Puppet Users] custom script execution and sending output back to master

2014-09-02 Thread Felix Frank
On 09/02/2014 02:45 PM, kaustubh chaudhari wrote: > Hey, > > Thanks for the reply. I tried what you suggested. > > Sorry i am not a programmer, trying to find my way through. > > I am looking for a best way to achieve this. > > run a script on nodes user.sh which will create a file user.out, all i

[Puppet Users] How best to accomplish geographic location of clients?

2014-09-02 Thread randal cobb
Hello all, I have a small problem I'm trying to resolve, and I'm bowing to the masters for suggestions. Our development organization uses VMware and desktop VMs to perform development efforts; I've come up with mechanisms to populate these VMs using puppet to install all the tools they need,

Re: [Puppet Users] custom facter fact not available from client

2014-09-02 Thread Nan Liu
On Tue, Sep 2, 2014 at 12:20 PM, Mike Reed wrote: > Hello all, > > I'm attempting to create a custom fact to identify the network to which a > node belongs to. Below is the fact definition (I realize this fact isn't > complete but wanted to test what I have so far): > > require 'facter' > Facter.

[Puppet Users] 30 days left before Puppet 2.7 end-of-life

2014-09-02 Thread Sam Kottler
Greetings puppet-users, Just wanted to send out a note to everyone to remind you all that Puppet 2.7 will reach end of life status on the 30th of September. This means there will be no new releases on {yum,apt}.puppetlabs.com, via tarballs, or on RubyGems.org. Although OS distributions will likely

[Puppet Users] custom facter fact not available from client

2014-09-02 Thread Mike Reed
Hello all, I'm attempting to create a custom fact to identify the network to which a node belongs to. Below is the fact definition (I realize this fact isn't complete but wanted to test what I have so far): require 'facter' Facter.add('network_geo') do setcode do hostname = Facter.v

[Puppet Users] Re: creating custom facts - general usage

2014-09-02 Thread Mike Reed
On Tuesday, September 2, 2014 6:42:11 AM UTC-7, jcbollinger wrote: > > > > On Friday, August 29, 2014 5:05:01 PM UTC-5, Mike Reed wrote: >> >> Hello all, >> >> To start, I would like to thank you in advance for your responses. >> >> I'm attempting to create a custom fact that will determine the n

Re: [Puppet Users] Puppet Enterprise runonce fails but regularly scheduled agent run succeeds

2014-09-02 Thread Rob Reynolds
On Fri, Aug 29, 2014 at 4:03 PM, Paul Chernoch wrote: > The node is a Windows 2008R2 box. > I am attempting to fetch files from Team Foundation Server using an exec > resource and the command line program TF.EXE. > When I process the catalog using the regularly scheduled puppet run, it > complete

Re: [Puppet Users] Permission problems on Windows

2014-09-02 Thread Rob Reynolds
On Mon, Sep 1, 2014 at 12:35 PM, Armindo Silva wrote: > Hi, > > I have a zip file that has some binaries inside, if I unzip it (with 7z) > manually and try to run one of the binaries and it just works, if I unzip > it using puppet agent: > > exec { 'eMZP': > command => 'cmd /c 7z x c:\myfol

Re: [Puppet Users] rspec-puppet and testing custom facts

2014-09-02 Thread Sebastian Otaegui
I tested my facts like this: https://github.com/Spantree/puppet-thrift/blob/master/spec/unit/facter/thrift_version_spec.rb One detail to take into account is that I change the mock library from its default to rspec: https://github.com/Spantree/puppet-thrift/blob/master/spec/spec_helper.rb Regard

Re: [Puppet Users] windows mount points

2014-09-02 Thread Rob Reynolds
On Mon, Sep 1, 2014 at 12:00 PM, Benjamin Priestman < benja...@miniverse.me.uk> wrote: > Hi, > > On windows hosts, I've taken to putting all my app data in c:\srv, > mimicing the /srv location on Linux. Depending on the host, this may be a > location on the system drive, or it is sometimes an addi

Re: [Puppet Users] rspec-puppet and testing custom facts

2014-09-02 Thread Hunter Haugen
On Tue, Sep 2, 2014 at 10:48 AM, Brett Swift wrote: > > rspec-puppet supports classes, functions, defined types, but not facts. > > > spec > | > -> classses > -> defines > -> facts? ? ? ?? ? > > > Is there a recommended way to test facts? > You don't actually need any of the hel

[Puppet Users] rspec-puppet and testing custom facts

2014-09-02 Thread Brett Swift
rspec-puppet supports classes, functions, defined types, but not facts. spec | -> classses -> defines -> facts? ? ? ?? ? Is there a recommended way to test facts? I've seen a few examples, but they seem hacky, and I have a feeling this should be or is available from pupp

Re: [Puppet Users] Query with use of recurse

2014-09-02 Thread Wil Cooley
On Sep 2, 2014 5:43 AM, "Balasubramaniam Natarajan" wrote: > > Hi > > I have a query regarding how recurse behaves when we call it with "ensure => file"[1] compared with "ensure => directory"[2] ? > > Would it make any sense to call recurse with "ensure => file" ? No, recurse is only useful for c

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-09-02 Thread Brian Wilkins
Matt, There is a better way and that is to use the roles and profiles pattern. I use that and I have a custom facter ruby script that reads the fqdn from a yaml and assigns it's role. Puppet takes over from there. On Saturday, August 23, 2014 1:46:59 PM UTC-4, Matt W wrote: > > Will, > Thank

Re: [Puppet Users] erb tempate issue

2014-09-02 Thread Wil Cooley
On Sep 1, 2014 3:35 AM, "Juan Sierra Pons" wrote: > > Hi > > Finally I have changed to another kind on loop that works for my case > > uri<% @ldap_servers.each do |server| -%> > ldap://<%= server -%> > <% end %> As you've found, an explicit loop, er, iterable is better than trying to use implici

[Puppet Users] Re: Switching modules files dynamicaly

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 4:28:08 AM UTC-5, Guy Meler wrote: > > Hey! > I Need to swap modules dynamically on my puppet masters. > > Are you talking about updating modules with newer versions, or something more dynamic than that? If the latter, then there is likely a better way to achieve

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-09-02 Thread Nigel Kersten
On Wed, Aug 27, 2014 at 8:10 AM, jcbollinger wrote: > > > On Tuesday, August 26, 2014 6:24:57 PM UTC-5, Nigel Kersten wrote: >> >> >> >> >> On Tue, Aug 26, 2014 at 12:27 PM, Erik Dalén >> wrote: >> >> >>> >>> >>> On 26 August 2014 20:22, jcbollinger wrote: >>> On Monday, August 2

Re: [Puppet Users] puppet dead but pid file exists

2014-09-02 Thread Brian Wilkins
It probably died (either ps -ef | grep puppetmaster | awk '{print $2}' | xargs kill -9) or otherwise. Just remove the pid file and continue. You can examine the pid file to see if a process with that PID and named puppetmasterd exists. More than likely not. On Tuesday, September 2, 2014 10:56:5

Re: [Puppet Users] puppet dead but pid file exists

2014-09-02 Thread Spriya
Hi John This is the way i am doing: *service puppetmaster stopStopping puppetmaster: [FAILED][root@cluster2 puppet]# service puppetmaster startStarting puppetmaster: [ OK ][root@cluster2 puppet]# service puppetm

[Puppet Users] Re: Why does my Puppet Master randomly revoke my Agent's certificate?

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 5:57:58 PM UTC-5, Jason Oakley wrote: > > My servers were working fine, when I got this error: > Inventory > Could not retrieve facts from inventory service: SSL_connect returned=1 > errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate > revoked

[Puppet Users] Puppet server getting closed source?

2014-09-02 Thread Thomas Müller
Hi Just heard some rumors on the floor that future Puppet products will only be available as closed source. Is there some official statement from Puppetlabs? - Thomas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from thi

Re: [Puppet Users] puppet dead but pid file exists

2014-09-02 Thread John Kennedy
How are you stopping Puppetmaster? If you are not gracefully shutting puppetmaster down then the PID file will not be deleted. John Kennedy (_8(|) I have a yellow dog: http://www.theyellowdogproject.com/The_Yellow_Dog_Project/About.html Why would anyone foster a dog/cat? I would rather cry watc

[Puppet Users] puppet dead but pid file exists

2014-09-02 Thread Spriya
Hi, I am having an issue when restarting puppetmaster. *$service puppetmaster status* *puppet dead but pid file exists* Let me know what might be the issue. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and st

[Puppet Users] Re: create_resources with default parameters on top of yaml for onetime usage

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 4:54:31 AM UTC-5, yamaka...@gmail.com wrote: > > Hi guys, > > I'm looking for a solution to svn checkout a branch and directly config > the branch modules using create_resources. > > My yaml would look like this I think for a one time checkout, which will > grab all

[Puppet Users] Re: Puppet agent loops and taking 100% of one CPU

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 9:59:12 AM UTC-5, pmorel wrote: > > Hello, > > Recently 3 puppet agents instances (on 3 different servers yet with > quasi-similar configurations) started running at 100% on one CPU and thus > they cannot listen to the master anymore. > > Nothing appears to be wrong i

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 7:07:22 PM UTC-5, Wil Cooley wrote: > > On Fri, Aug 29, 2014 at 12:47 PM, Julien Pivotto > wrote: > >> On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: >> >If both nodes has to export the same resource ( same >> >type/same title) they cannot b

[Puppet Users] not able to sign the certificate of puppet master

2014-09-02 Thread Spriya
Hi, I installed puppet using open source. when i tryied to run puppet agent -t it is throwing me error. puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: getaddrinfo: Name or service not known Info: Retrieving pluginfacts *Error: /Fi

Re: [Puppet Users] Using puppet with Apache mod_disk_cache and passenger over SSL

2014-09-02 Thread Brian Wilkins
I turned off high performance, but every request still hits the puppetmaster. Any more ideas? On Friday, August 29, 2014 5:57:30 PM UTC-4, Wil Cooley wrote: > > On Fri, Aug 29, 2014 at 9:50 AM, Brian Wilkins > wrote: > >> # RHEL/CentOS: >> # And the passenger performance tuning settings: >> Pass

[Puppet Users] Re: creating custom facts - general usage

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 5:05:01 PM UTC-5, Mike Reed wrote: > > Hello all, > > To start, I would like to thank you in advance for your responses. > > I'm attempting to create a custom fact that will determine the network > location of a node, based on it's hostname. Ideally this would be run

Re: [Puppet Users] Re: Good PupptMaster/Passenger Guide w OSX 10 .9

2014-09-02 Thread Thomas Bendler
Install C6, install EPEL and SCL repository, install Foreman repository and foreman-installer. Execute foreman-installer and the system is ready to run (http://theforeman.org/manuals/1.5/quickstart_guide.html). Regards Thomas 2014-09-01 21:50 GMT+02:00 : > > > On Tuesday, August 26, 2014 7:23:4

Re: [Puppet Users] custom script execution and sending output back to master

2014-09-02 Thread kaustubh chaudhari
Hey, Thanks for the reply. I tried what you suggested. Sorry i am not a programmer, trying to find my way through. I am looking for a best way to achieve this. run a script on nodes user.sh which will create a file user.out, all i am looking for getting this user.out file back to the puppet mas

[Puppet Users] Query with use of recurse

2014-09-02 Thread Balasubramaniam Natarajan
Hi I have a query regarding how recurse behaves when we call it with "ensure => file"[1] compared with "ensure => directory"[2] ? Would it make any sense to call recurse with "ensure => file" ? [1] file {'/home/bala': ensure=> file, source => "puppet:///files/home/bala/", sourcesel

[Puppet Users] Subscribe a kickstarted server to groups in PE dashboard

2014-09-02 Thread Juan Jose Blanco
Hello, We are provisioning servers with Spacewalk and kickstart profiles. Servers are installed with pe-agent included and, after reboot, puppet agent is run in the server, which is added to groups "default" and "mcollective" in puppet dashboard. Depending on their types, we would like to

Re: [Puppet Users] puppet rspec with hiera helper, fails with error when class is parameterized

2014-09-02 Thread Manish Sapariya
Thanks Martin, I completely missed that. Also, just for record, I was using hiera-puppet-herlper version 1. When I build version 2 gem from github, it worked alright. Regards, Manish On Sunday, August 31, 2014 4:27:25 PM UTC+5:30, Martin Alfke wrote: > > Hi Manish, > > On 29.08.2014, at 14:07, M