Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread David Arroyo
Along the same lines, many exec resources are written with this behaviour in mind. For example, this exec will initialize the puppet CA certificate. Useful if you're running puppet under something like passenger. exec{'Create initial puppet CA': command => '/sbin/service puppetmaste

Re: [Puppet Users] overriding class parameters with 'undef'

2014-01-11 Thread David Arroyo
Hi Jeffrey, You cannot override the default parameter to be undef, but you can override the service resource's behaviour with a resource collector[0]. It's less than ideal because you have to know the name of the service, but something like this: class{'apache':} Service <|ti

Re: [Puppet Users] file management

2013-12-31 Thread David Arroyo
See the 'recurse' and 'purge' parameters of the file type. http://docs.puppetlabs.com/references/latest/type.html#file file{'/root/mydir': ensure => directory, recurse => true, purge => true, } file{['/root/mydir/a','/root/mydir/b','/root/mydir/c

[Puppet Users] Run stages of virtual resources

2013-12-31 Thread David Arroyo
Our site has several dozen yum repositories. Pushing all yum repositories to all servers isn't practical; it hurts performance, some repositories are OS-specific, and some repositories cause conflicts with each other (we have a ruby187 repo and a ruby 193 repo, for example). In our current setu

[Puppet Users] Re: Optional loading of firewall rules

2013-03-13 Thread David Arroyo
Hi John, On Wednesday, March 13, 2013 11:51:51 AM UTC-4, jcbollinger wrote: > On the flip side, the Firewall resource type provided by that module does not > have any inherent dependency on such classes -- that's all coming from the > global resource defaults you declare. I understand that the ::