[Puppet Users] Re: how to add apt repository with puppet

2009-07-23 Thread Mark Foster
In case it saves you any time... the file in /etc/apt/sources.list.d/ needs to end in .list or it will be ignored. -Signed, someone who learned the hard way. On Jul 14, 9:40 am, Fernando Padilla wrote: > I keep googling, but I can't seem to find the answer. > > What's the best way to add a apt-

[Puppet Users] Re: Tidy symlinks

2009-07-23 Thread Greg
Trevor, Not sure - the docs don't seem to reference symlinks in terms of tidy... Just something to try - does setting rmdirs => true make any difference? Greg On Jul 24, 11:19 am, Trevor Vaughan wrote: > So, I have a directory of symlinks that I'm managing and Tidy doesn't > seem to be doing

[Puppet Users] Re: class dependencies

2009-07-23 Thread Greg
Simple answer - no. Dependencies can only be between objects in 0.24.x... I believe (but haven't seen for myself yet) that there are changes to this coming as its a frequently requested feature... I used to think it was a good idea, then I sat and thought about it for a while and now I don't act

[Puppet Users] Re: passenger vs mongrel performance

2009-07-23 Thread Ohad Levy
Thanks Greg, I saw Larrys patch, and its inline with my changes :( Ohad On Fri, Jul 24, 2009 at 11:46 AM, Greg wrote: > > Ohad, > > Was discussed a little last month (linky: > > http://groups.google.com/group/puppet-users/browse_thread/thread/445bf03568856a0a/36004ff8c56271c3 > ) > > I thi

[Puppet Users] Re: passenger vs mongrel performance

2009-07-23 Thread Greg
Ohad, Was discussed a little last month (linky: http://groups.google.com/group/puppet-users/browse_thread/thread/445bf03568856a0a/36004ff8c56271c3 ) I think the general theme there was that it wasn't as fast as well... Someone submitted a patch to 0.25 to change the apache2 config example (linky

[Puppet Users] Solaris SMF services and their dependencies...

2009-07-23 Thread Greg
Hi all, I have an NFS server on our network sharing out package files for Puppet to install to all and sundry. The clients access said NFS server via an automounter configuration (I don't want the packages share mounted all the time, only when installing packages) As a result, installation of pac

[Puppet Users] passenger vs mongrel performance

2009-07-23 Thread Ohad Levy
Hi All, I've recently upgraded all of my mongrels to passenger on all of my puppetmasters, and I'm seeing some performance degradations, hopefully someone can provide some feedback.. i see an increase in cpu and load indicators, and i've calculated that the actual puppet compile time has increase

[Puppet Users] Tidy symlinks

2009-07-23 Thread Trevor Vaughan
So, I have a directory of symlinks that I'm managing and Tidy doesn't seem to be doing much for me in there. Does Tidy ignore symlinks for some reason? If not, does anyone have the correct syntax? Thanks, Trevor --~--~-~--~~~---~--~~ You received this message b

[Puppet Users] Re: uninstall package on ubuntu

2009-07-23 Thread Scott Smith
Avi Miller wrote: > Scott Smith wrote: >> Am fairly certain --test implies --dry-run and won't actually enact >> any changes. > > Sorry, but --test certainly does apply changes. We use it a lot! > D'oh, I misread. That's what I get for reading E-mail on my iphone while riding the bus :( -sco

[Puppet Users] Re: uninstall package on ubuntu

2009-07-23 Thread Nigel Kersten
On Thu, Jul 23, 2009 at 5:03 PM, Scott Smith wrote: > > Am fairly certain --test implies --dry-run and won't actually enact > any changes. Nope. --test is basically shorthand for: --verbose --ignorecache --no-usecacheonfailure --no-splay --show_diff --no-daemonize IIRC. > > You have other

[Puppet Users] Re: uninstall package on ubuntu

2009-07-23 Thread Avi Miller
Scott Smith wrote: > Am fairly certain --test implies --dry-run and won't actually enact > any changes. Sorry, but --test certainly does apply changes. We use it a lot! cYa, Avi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[Puppet Users] Re: uninstall package on ubuntu

2009-07-23 Thread Scott Smith
Am fairly certain --test implies --dry-run and won't actually enact any changes. You have other issues w/your config, though. -scott On Jul 23, 2009, at 9:50, awreneau wrote: > > Found a recipe that indicates the following will uninstall (equiv of > apt-get remove vlc) the vlc package. >

[Puppet Users] Re: Adding users to multiple groups

2009-07-23 Thread Scott Smith
Try using: ingroups => ['wheel', 'devel'] On Jul 23, 2009, at 13:18, Bryan Ross wrote: > > Hi, > > I've read puppet isn't great at handling lots of users, but I've got a > small user base and all my servers are geographically distributed and > hidden behind various firewalls/vpns, making them

[Puppet Users] Re: puppetd no-daemonize

2009-07-23 Thread Derek Yarnell
Ok, this would seem to be a problem on RHEL4 w/ the built in ruby as my RHEL5 w/ the built in ruby works as I would expect running the same command. RHEL4 ships with, # ruby --version ruby 1.8.1 (2003-12-25) [i386-linux-gnu] What are other people doing on RHEL4 are you using the built in ruby or

[Puppet Users] Adding users to multiple groups

2009-07-23 Thread Bryan Ross
Hi, I've read puppet isn't great at handling lots of users, but I've got a small user base and all my servers are geographically distributed and hidden behind various firewalls/vpns, making them unsuitable for centralised authentication that requires a constant connection (eg. LDAP). We've previ

[Puppet Users] uninstall package on ubuntu

2009-07-23 Thread awreneau
Found a recipe that indicates the following will uninstall (equiv of apt-get remove vlc) the vlc package. # /etc/puppet/manifests/classes/packages.pp class packages { $packages = ["vlc"] package{ $packages: ensure => absent } } When I run sudo puppetd --test I see the follo

[Puppet Users] Re: puppetd no-daemonize

2009-07-23 Thread Trevor Vaughan
Just for input, I haven't been seeing this behavior with 0.24.8 (or any previous release) on Fedora. Trevor On Thu, Jul 23, 2009 at 17:43, Derek Yarnell wrote: > On Tue, Jul 21, 2009 at 8:13 PM, Luke Kanies wrote: >> >> It's not daemonizing there, it's exiting -- if you use --onetime, it >> exi

[Puppet Users] Re: puppetd no-daemonize

2009-07-23 Thread Derek Yarnell
On Tue, Jul 21, 2009 at 8:13 PM, Luke Kanies wrote: > > It's not daemonizing there, it's exiting -- if you use --onetime, it > exits after the run. > It really does daemonize there, # ps axuww | grep puppet root 2476 0.0 0.2 4036 644 pts/1S+ 17:41 0:00 grep puppet # /usr/sbin/p

[Puppet Users] class dependencies

2009-07-23 Thread lance dillon
How can I have a module/class that is dependent on another class? Say, /etc/puppet/modules: module1 module2 in module2/manifests/init.pp class module2 { file { # blah blah blah require => Class["module1"], } package { } } Usually this gives me an error (can't remember what; I'm writ

[Puppet Users] Re: Source Arrays and Template Arrays

2009-07-23 Thread Larry Ludwig
On Jul 23, 2009, at 1:58 PM, TomTom wrote: > Is it possible to do the same thing with templates? > An example of what I want to do is: > > file { "/etc/sysctl.conf": > content => [ > template("sysctl.conf.$hostname.erb"), > template("sysctl.conf.$tuningpolicy.erb"), > template("sysctl.conf

[Puppet Users] Re: Source Arrays and Template Arrays

2009-07-23 Thread Udo Waechter
hmmm, right after sending the provious mail, I realised something: On 23.07.2009, at 21:27, Udo Waechter wrote: Hi, On 23.07.2009, at 19:58, TomTom wrote: Is it possible to do the same thing with templates? An example of what I want to do is: file { "/etc/sysctl.conf": content => [ templat

[Puppet Users] Re: Source Arrays and Template Arrays

2009-07-23 Thread Udo Waechter
Hi, On 23.07.2009, at 19:58, TomTom wrote: Is it possible to do the same thing with templates? An example of what I want to do is: file { "/etc/sysctl.conf": content => [ template("sysctl.conf.$hostname.erb"), template("sysctl.conf.$tuningpolicy.erb"), template("sysctl.conf.erb"), ] }

[Puppet Users] Source Arrays and Template Arrays

2009-07-23 Thread TomTom
Hello All, I recently found an excellent feature that I never knew about. I never knew that you could source an array of files and then have puppet figure out which one to use (like a case statement, within the source directive. An example of this would be: file { "/etc/sysctl.conf": source =

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Mark Plaksin
Todd Zullinger writes: > One potential fix for that is to check for deletions, like so: Thanks for doing work for us :) We noticed the need for this but haven't had a chance to fix it. Your change works great. I updated the Wiki. > One other potential problem is if puppet is used to manage

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Peter Meier
Hi >> good idea! Currently I have all site specific stuff in one big module, >> but like that I might be able to organize it again in modules per each >> site specific module adaptions. Question: Is autoloading looking in >> both module directories? so if it's not found in the module in one >> mo

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Todd Zullinger
Mark Plaksin wrote: > I'm sure you know this but when you talk about version control be > sure to mention a syntax-checking pre-commit hook. That has saved > us countless hours. This page has hooks for SVN and Git: > http://reductivelabs.com/trac/puppet/wiki/PuppetVersionControl Indeed, this hel

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Larry Ludwig
> > good idea! Currently I have all site specific stuff in one big module, > but like that I might be able to organize it again in modules per each > site specific module adaptions. Question: Is autoloading looking in > both module directories? so if it's not found in the module in one > module di

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Peter Meier
Hi > "Use double-quotes around node names" I would say using single quotes > is better since the Puppet language does not try to parse it for > variables. I have not done any tests in Puppet of single over double > quotes but have seen other interpreted languages recommend single > quote first

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Larry Ludwig
Hi Paul, Some comments about the doc. "Use double-quotes around node names" I would say using single quotes is better since the Puppet language does not try to parse it for variables. I have not done any tests in Puppet of single over double quotes but have seen other interpreted languag

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread Mark Plaksin
Paul Lathrop writes: > Hi Puppeteers, > > I spent some time tonight making a first pass at what I hope will > eventually be a good replacement for the current "Puppet Best > Practices" page on the wiki. Thanks! > Please take a look and flame away. I need feedback, both positive and > negative,

[Puppet Users] Re: Toward a simple Nginx configuration for Puppet Mongrel

2009-07-23 Thread Brice Figureau
Hi Peter, On Tue, 2009-07-21 at 22:21 +0200, Peter Meier wrote: > Hi > > > I've created two Nginx patches (see at the end of this message) to allow > > a simpler Nginx configuration for your Mongrel puppetmasters. > > > > The two main issues with Nginx in front of puppet were: > > * no CRL s

[Puppet Users] user provider on FreeBSD and manages_passwords, again.

2009-07-23 Thread Leon Meßner
Hi, i would like to use the user provider on freebsd to manage passwords. This isn't implemented at the moment as Luke said in Message-Id: <5fe94839-099e-43a6-a2a6-411224d9b...@madstop.com>. If you run pw with -h $fd or -H $fd you can provide a password via the file descriptor with nunber $fd (a

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-07-23 Thread David Schmitt
Paul Lathrop wrote: > Hi Puppeteers, > > I spent some time tonight making a first pass at what I hope will > eventually be a good replacement for the current "Puppet Best > Practices" page on the wiki. I know this needs *tons of work, but I > hit a good pausing point and decided it was time to as

[Puppet Users] Best Practices Rewrite - First Draft

2009-07-23 Thread Paul Lathrop
Hi Puppeteers, I spent some time tonight making a first pass at what I hope will eventually be a good replacement for the current "Puppet Best Practices" page on the wiki. I know this needs *tons of work, but I hit a good pausing point and decided it was time to ask for feedback and contributions