[Puppet Users] Re: Check for a line in a file

2009-10-07 Thread Peter Meier
Hi >> http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText can do it > > > Augeas and a lens could be another approach to this. > > I believe the augeas package comes with an /etc/services lens. An example: http://puppet.git.puzzle.ch/?p=module-sshjump.git;a=blob;f=manifests/tunnel.p

[Puppet Users] Definitions and uniqueness

2009-10-07 Thread Scott
So I'm running puppet 0.24.8 and I'm trying to use a definition where sometimes the "name" parameter will be the same but other parameters will be different and puppet is complaining because it expects "name" parameter to be unique. Is that the way it's supposed to be? And if so, why? The file

[Puppet Users] Re: Definitions and uniqueness

2009-10-07 Thread David Schmitt
Scott wrote: > So I'm running puppet 0.24.8 and I'm trying to use a definition where > sometimes the "name" parameter will be the same but other parameters > will be different and puppet is complaining because it expects "name" > parameter to be unique. > > Is that the way it's supposed to be? Y

[Puppet Users] Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread scott
I recently upgraded to Puppet 0.25 and am trying to migrate to Passenger but am noticing a strange problem. It appears code is being cached inappropriately and puppet is refusing to hand out manifests or files since they aren't authorized. If I restart httpd and then run two puppet clients in s

[Puppet Users] Re: Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread Daniel Selans
We had roughly the same experience. Downgrading to passenger 2.2.2 fixed this issue for us. The only way how 2.2.5 worked was by adding always_restart.txt, which severely affects performance. scott wrote: > I recently upgraded to Puppet 0.25 and am trying to migrate to > Passenger but am notic

[Puppet Users] Re: Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread scott
On Oct 7, 10:38 am, Daniel Selans wrote: > We had roughly the same experience. Downgrading to passenger 2.2.2 fixed > this issue for us. Thanks, downgrading seems to have fixed it for me too. > The only way how 2.2.5 worked was by adding always_restart.txt, which > severely affects performanc

[Puppet Users] Re: Thread safety/interleaving problem with 0.25 + passenger 2.2.5?

2009-10-07 Thread Peter Meier
Hi >> The only way how 2.2.5 worked was by adding always_restart.txt, which >> severely affects performance. > > Should the Wiki page at > http://reductivelabs.com/trac/puppet/wiki/UsingPassenger > be changed, or does someone know something we don't? It does appear > that some installations of

[Puppet Users] Adding class-limited override

2009-10-07 Thread Gungazoo
I'm trying to add a class-limited override to a user section. It looks something like this: class usg123::biee-users inherits allusers { $somegroups = ['users','group2','group3'] User['user1'] { groups => $somegroups, } User['user2'] { groups => $somegroups, } realize( Us

[Puppet Users] Mixing Ruby and Puppet

2009-10-07 Thread Luis Bruno
To manage Asterisk users, I've made a define that can be used like this: asterisk::user { "sip.login": fullname => "Sip Extension 223", secret => "allyourbase", extension => "223", } I'm trying to put user definitions in a single string, and make something like the following. Should

[Puppet Users] Re: puppet SYN flood

2009-10-07 Thread Pete Emerson
Either insane ... or ignorant of the fact that one shouldn't push WEBrick that far. Or maybe both. Today I bit the bullet and used the instructions here: http://reductivelabs.com/trac/puppet/wiki/UsingPassenger to migrate to Passenger. Pretty painless. I tested it on 8141 first, leaving WEBrick

[Puppet Users] Re: regular expressions do not work with selectors as shown in documentation

2009-10-07 Thread Bryan
OK. I just noticed I'm not running version 0.25 as is glaringly obvious from the contents of my email. My mistake. Sorry for the post. On Wed, Oct 7, 2009 at 6:18 PM, Bryan Schneiders wrote: > The documentation at: > http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals > >

[Puppet Users] regular expressions do not work with selectors as shown in documentation

2009-10-07 Thread Bryan Schneiders
The documentation at: http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals says: """ Starting with version 0.25, selectors now support regular expressions: $owner = $operatingsystem ? { /(redhat|debian)/ => "bin", default => undef, } In this last example, if $operat

[Puppet Users] Re: regular expressions do not work with selectors as shown in documentation

2009-10-07 Thread Todd Zullinger
Bryan wrote: > OK. I just noticed I'm not running version 0.25 as is glaringly > obvious from the contents of my email. My mistake. Sorry for the > post. Though if you want to try 0.25.1rc1, there are packages available at: http://tmz.fedorapeople.org/repo/puppet/ If you grab the puppet.r

[Puppet Users] Re: puppet SYN flood

2009-10-07 Thread Greg
I'm actually curious about how you managed to get so far without needing to move to Mongrel or Passenger... Pete - am wondering what types of objects you have been running in your config. I'm suspecting really light stuff and probably not a huge amount of it, am I right? Things like file permissi

[Puppet Users] Re: Definitions and uniqueness

2009-10-07 Thread seph
I continue to wish for multidimensional objects. This is another example. seph David Schmitt writes: > Scott wrote: >> So I'm running puppet 0.24.8 and I'm trying to use a definition where >> sometimes the "name" parameter will be the same but other parameters >> will be different and puppet i