Re: [Puppet Users] Re: error after upgrading from 2.7.14-2puppetlabs1 to 2.7.17-1puppetlabs1

2012-06-27 Thread Erik Anderson
On Wed, Jun 27, 2012 at 7:00 PM, Jeff McCune wrote: > So, I think the story is...  Don't use hyphens in variable names (and > class names).  We accidentally allowed them from 2.7.3 through 2.7.14 > but we've gone back to it being an error. Understood, Jeff. Thanks for the clarification. -Erik -

Re: [Puppet Users] Re: error after upgrading from 2.7.14-2puppetlabs1 to 2.7.17-1puppetlabs1

2012-06-27 Thread Erik Anderson
On Wed, Jun 27, 2012 at 5:36 PM, llow...@oreillyauto.com wrote: > Dashes '-' are not allowed in variable and class names. > > We were faced with this recently. > > We wound up rolling back and then refactoring all  our code, using > puppet-lint as a guide and to help find all the potential issues.

Re: [Puppet Users] Distribution upgrade and subsequent reboot of machine

2012-06-27 Thread Peter Brown
No worries. Hope it helps. I have been looking for an excuse to venture into mcollective but haven't needed it yet. On 28 June 2012 03:24, Mike Reed wrote: > Hey Pete, > > I haven't had a chance to venture into mcollective yet but that's a great > thought and I'll put that on my list of things

Re: [Puppet Users] Re: Distribution upgrade and subsequent reboot of machine

2012-06-27 Thread Peter Brown
On 28 June 2012 01:02, jcbollinger wrote: > > > On Tuesday, June 26, 2012 8:12:05 PM UTC-5, Mike Reed wrote: >> >>         exec { "purge_linux-image-2.6.32-38-server" : >>                 command => "/usr/bin/apt-get -y purge >> linux-image-2.6.32-38-server" , >>                 require => Exec['p

Re: [Puppet Users] Re: error after upgrading from 2.7.14-2puppetlabs1 to 2.7.17-1puppetlabs1

2012-06-27 Thread Jeff McCune
On Wed, Jun 27, 2012 at 3:36 PM, llow...@oreillyauto.com wrote: > The dashes have been semi-supoported for a short while, and depreciated for > most of 2.7.x Dashes in variable names started working again in 2.7.3. According to Daniel Pittman, they shouldn't have started working again. We looke

[Puppet Users] Re: error after upgrading from 2.7.14-2puppetlabs1 to 2.7.17-1puppetlabs1

2012-06-27 Thread llow...@oreillyauto.com
Comments inline On Wednesday, June 27, 2012 4:24:44 PM UTC-5, Erik Anderson wrote: > > Hello all - > > For the last few weeks I've been running puppet 2.7.14-2 from the > puppetlabs apt repo. This is on Ubuntu 12.04 LTS, x64. Things have > been going great, no issues (at least none related to p

Re: [Puppet Users] Re: Extending Puppet using Rubygems

2012-06-27 Thread Michael Stahnke
On Mon, Jun 25, 2012 at 6:19 AM, jcbollinger wrote: > > > On Saturday, June 23, 2012 7:38:20 PM UTC-5, Kelsey Hightower wrote: >> >> There is a pending pull request that adds the ability for Puppet to load >> Faces, parser functions, and report processors installed via Rubygems. >> >> https://gith

[Puppet Users] error after upgrading from 2.7.14-2puppetlabs1 to 2.7.17-1puppetlabs1

2012-06-27 Thread Erik Anderson
Hello all - For the last few weeks I've been running puppet 2.7.14-2 from the puppetlabs apt repo. This is on Ubuntu 12.04 LTS, x64. Things have been going great, no issues (at least none related to puppet itself...). I upgraded to 2.7.17-1 this morning, again from the official puppetlabs apt rep

[Puppet Users] Re: REST API: facts_search on custom fact does not include puppet master in its list

2012-06-27 Thread banjer
My original post should read "abc" and not "btp" in the "facter -p | grep datacenter" examples. Edited inline below.. On Wednesday, June 27, 2012 2:20:35 PM UTC-4, banjer wrote: > > I'm running the following query to get a list of hosts in datacenter "abc": > > root@puppet:~> curl -k -H "Accept:

[Puppet Users] Re: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82

2012-06-27 Thread llow...@oreillyauto.com
A few updates, comment inline with original post. On Wednesday, June 27, 2012 11:12:15 AM UTC-5, llo...@oreillyauto.com wrote: > > I have a module located at /etc/puppet/environments/test/modules/ruby. > I > n this I have a manifests folder with two .pp files - init.pp and > gemInstall.pp. > > In

[Puppet Users] REST API: facts_search on custom fact does not include puppet master in its list

2012-06-27 Thread banjer
I'm running the following query to get a list of hosts in datacenter "abc": root@puppet:~> curl -k -H "Accept: pson" https://puppet:8140/production/facts_search/search?facts.datacenter=abc ["host04","host05","web01","db01"] *datacenter *is a custom fact distributed with pluginsync. The problem i

Re: [Puppet Users] Distribution upgrade and subsequent reboot of machine

2012-06-27 Thread Mike Reed
Hey Pete, I haven't had a chance to venture into mcollective yet but that's a great thought and I'll put that on my list of things to "investigate". I'm only running puppet against one machine and it's a box I don't care about so I'll give this a run and see how it goes. I wanted to thank you

Re: [Puppet Users] add an rpm to a host

2012-06-27 Thread Christian DeKonink
Thanks for your immediate response. The first solution you propesed worked flawlessly. I like that. Thanks. On Fri, Jun 22, 2012 at 9:23 AM, Christopher Wood < christopher_w...@pobox.com> wrote: > > class myrpm { > package { 'foo_bar': } > } > > node "myhost.me.com" { > class { 'myrpm': } > } >

[Puppet Users] Re: Distribution upgrade and subsequent reboot of machine

2012-06-27 Thread Mike Reed
Hey John, Thanks for the reply. I'll look up the 'onlyif' and 'unless' usage and see which might best suit my needs. Thank you for pointing me in the right direction. Cheers, Mike On Wednesday, June 27, 2012 8:02:16 AM UTC-7, jcbollinger wrote: > > > > On Tuesday, June 26, 2012 8:12:05 PM U

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-27 Thread Robert Bencale
I have the rpm ruby-shadow-1.4.1-7.el5 installed. On Wed, Jun 27, 2012 at 12:44 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 06/27/2012 06:40 PM, Robert Bencale wrote: > > hmmm I am also running as root, but do get the password hash. Any ideas? > > Yes, actually. Do you have lib

Re: [Puppet Users] Puppet Forge question

2012-06-27 Thread Jeff McCune
On Tue, Jun 26, 2012 at 9:05 AM, llow...@oreillyauto.com wrote: > I have the files unpacked in  /etc/puppet/modules/stdlib as was indicated. > The documentation mentions I can do a puppet doc -r function. > > When I try 'puppet doc -r validate_string' I get 'Could not run: Could not > find referen

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-27 Thread Felix Frank
On 06/27/2012 06:40 PM, Robert Bencale wrote: > hmmm I am also running as root, but do get the password hash. Any ideas? Yes, actually. Do you have librubyshadow installed? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group,

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-27 Thread Robert Bencale
hmmm I am also running as root, but do get the password hash. Any ideas? On Tue, Jun 26, 2012 at 6:22 PM, John Lyman wrote: > It does for me, but I am running as root. Maybe that is the difference. > Or maybe your user provider doesn't manage_passwords? > > > On Monday, June 25, 2012 9:30:39 PM

[Puppet Users] Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82

2012-06-27 Thread llow...@oreillyauto.com
I have a module located at /etc/puppet/environments/test/modules/ruby. I n this I have a manifests folder with two .pp files - init.pp and gemInstall.pp. In one of my node def files I have: include ruby ruby::gemInstall { 'someGem-version.gem': path => '/path/to/agent/local/gem/repo', } ruby

[Puppet Users] Re: Distribution upgrade and subsequent reboot of machine

2012-06-27 Thread jcbollinger
On Tuesday, June 26, 2012 8:12:05 PM UTC-5, Mike Reed wrote: > > exec { "purge_linux-image-2.6.32-38-server" : > command => "/usr/bin/apt-get -y purge > linux-image-2.6.32-38-server" , > require => Exec['purge_linux-headers-2.6.32-38'] , > } > >

[Puppet Users] Re: What permissions should these folders have?

2012-06-27 Thread jcbollinger
On Tuesday, June 26, 2012 9:22:25 PM UTC-5, Michael Altfield wrote: > > > Do you have any recommendations on /var/lib/puppet? > > The functional requirements for this directory on the master are similar to the requirements for /etc/puppet/manifests, but the master may need to write here. On cl

[Puppet Users] Re: Is it possible to access type params in another type?

2012-06-27 Thread jcbollinger
On Wednesday, June 27, 2012 12:27:17 AM UTC-5, Yanis Guenane wrote: > > What I actually would like it to create a kind of dependency. > > I would like that a parameter X of any instance of type 'b' *depends* on > the path param of the 'a' resource instance namely passed as a parameter. > > file

Re: [Puppet Users] system users class hogging whole cpu

2012-06-27 Thread Felix Frank
On 06/27/2012 03:14 PM, Azfar Hashmi wrote: > Thanks Jhon for the response but I am still in black-hole. > Btw total no of users on the system are only below which are in the > class. So I don't think puppet should take much time to find free UIDs. > Regarding other classess if I disable all classe

Re: [Puppet Users] Puppet / Passenger and Firewall

2012-06-27 Thread Dan White
- Martin Alfke wrote: > > On 27.06.2012, at 16:17, Dan White wrote: > > > I expect I need to allow incoming TCP on 8140 for connections from any > > puppet agent/clients, but do I need anything else opened up in the firewall > > in either direction ? > > when you use puppet kick from the

Re: [Puppet Users] Puppet / Passenger and Firewall

2012-06-27 Thread Matthew Burgess
On Wed, Jun 27, 2012 at 3:17 PM, Dan White wrote: > I expect I need to allow incoming TCP on 8140 for connections from any puppet > agent/clients, but do I need anything else opened up in the firewall in > either direction ? Hi Dan, The agent can be configured to listen (on port 8139) so that

Re: [Puppet Users] Puppet / Passenger and Firewall

2012-06-27 Thread Martin Alfke
On 27.06.2012, at 16:17, Dan White wrote: > I expect I need to allow incoming TCP on 8140 for connections from any puppet > agent/clients, but do I need anything else opened up in the firewall in > either direction ? when you use puppet kick from the master you need to open port 8141 on any a

[Puppet Users] Puppet / Passenger and Firewall

2012-06-27 Thread Dan White
I expect I need to allow incoming TCP on 8140 for connections from any puppet agent/clients, but do I need anything else opened up in the firewall in either direction ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to cont

Re: [Puppet Users] OT: Monitoring solutions

2012-06-27 Thread Peter Berghold
I've considered changing up my monitoring solution but I've stayed with Nagios and Munin for a while. Nagios gives me monitoring and Munin gives me metrics. Since I have quite a bit invested in home grown plugins for Nagios I lack incentive to change at this point. Peter L. Berghold

Re: [Puppet Users] OT: Monitoring solutions

2012-06-27 Thread Michael Baydoun
We are using xymon, graphs come standard On Sun, Jun 24, 2012 at 4:45 PM, Kyle Sexton wrote: > All, > > I'm curious what monitoring solutions everyone is using and recommend, > some of the ones I've been looking at recently: > > Nagios: Old stand-by, used quite a bit but doesn't provide a cohesi

Re: [Puppet Users] Next Problem: Puppet 2.7 + Passenger won't connect

2012-06-27 Thread Dan White
- Dan White wrote: > > On Jun 26, 2012, at 5:07 PM, Craig White wrote: > > On Jun 26, 2012, at 1:20 PM, Dan White wrote: > >> I am guessing there should be an 8140 in that netstat, right ? > > > > yes, if you have passenger properly configured as a puppetmaster, it would > > be listenin

Re: [Puppet Users] system users class hogging whole cpu

2012-06-27 Thread Azfar Hashmi
Thanks Jhon for the response but I am still in black-hole. Btw total no of users on the system are only below which are in the class. So I don't think puppet should take much time to find free UIDs. Regarding other classess if I disable all classes and and use only this class the behavior is same n

Re: [Puppet Users] Base directory with File

2012-06-27 Thread Mark Roggenkamp
Even better. Thank you, sir. Mark On Tuesday, June 26, 2012 7:17:34 PM UTC-4, Stefan Schulte wrote: > > On Mon, Jun 25, 2012 at 10:27:40AM -0700, Mark Roggenkamp wrote: > > Hi all, > > > > I'd like to specify a base_directory and a list of directories (as > > variables that may be pulled via

Re: [Puppet Users] subscribing to a remote mailbox

2012-06-27 Thread Paul Mena
John, Thanks for the reply. I'd be embarrassed to admit how long ago I last used procmail, but I used it to trigger the playing of particular WAV files depending upon who was sending me mail. It sounds like it might be ideal for the type of processing I wish to do without having to necessaril

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Felix Frank
On 06/27/2012 11:19 AM, Matthew Burgess wrote: >> We redefined the restart command: >> > >> > restart => '/usr/bin/nohup /etc/init.d/puppet restart &' > Nice! Thanks very much, Martin, that works really nicely. Yeah, this looks really slick. Thanks for sharing. -- You received this message beca

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Matthew Burgess
On Wed, Jun 27, 2012 at 10:13 AM, Martin Alfke wrote: > We redefined the restart command: > > restart => '/usr/bin/nohup /etc/init.d/puppet restart &' Nice! Thanks very much, Martin, that works really nicely. Regards, Matt. -- You received this message because you are subscribed to the Goog

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Martin Alfke
On 27.06.2012, at 11:01, Felix Frank wrote: > On 06/27/2012 10:51 AM, Matthew Burgess wrote: >> is there something special about >> the puppet service that it issuing the equivalent of 'service puppet >> restart' doesn't actually work? > > Oh, it works, but think of what you're having puppet do:

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Matthew Burgess
On Wed, Jun 27, 2012 at 10:01 AM, Felix Frank wrote: > On 06/27/2012 10:51 AM, Matthew Burgess wrote: >> is there something special about >> the puppet service that it issuing the equivalent of 'service puppet >> restart' doesn't actually work? > > Oh, it works, but think of what you're having pup

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Felix Frank
On 06/27/2012 10:51 AM, Matthew Burgess wrote: > is there something special about > the puppet service that it issuing the equivalent of 'service puppet > restart' doesn't actually work? Oh, it works, but think of what you're having puppet do: By calling the initscript and telling it to restart, i

[Puppet Users] Puppet can't successfully restart puppetd

2012-06-27 Thread Matthew Burgess
Hi, I have a puppet module which is relatively simple; it just defines a couple of packages (puppet & facter) and a couple of files (/etc/puppet/puppet.conf, /etc/puppet/namespaceauth.conf and /etc/puppet/auth.conf) and a service (puppet), which is subscribed to the puppet package and the 3 config

Re: [Puppet Users] Error 400 on SERVER: invalid value for Integer

2012-06-27 Thread Felix Frank
Hi, On 06/25/2012 11:34 AM, Kmbu wrote: > To me 400 implies that the client is responsible for the error, not the > puppetmaster. this sounds a little far-fetched, to be honest. For example, the agent might be sending a broken request, making the master believe a certain fact value is this long

Re: [Puppet Users] puppet server complains of time sync

2012-06-27 Thread Felix Frank
Hi, On 06/23/2012 10:17 PM, Tim Dunphy wrote: > The puppet server is currently controlling a number of nodes, and all > the nodes are solaris. I've had a look at the server certificate with > the openssl s_client -connect ${SERVER} command from both a working > puppet client running solaris and th