Re: [Puppet Users] recurse => true

2010-01-27 Thread Anchi Zhang
On Wed, Jan 27, 2010 at 11:06 AM, Peter Meier wrote: > Node and class: >> >> node default { include solaris } >> class solaris { >>file { "/etc": >>source => "puppet:///files-solaris/etc", >>recurse => true, >>ensure => directory, >>

Re: [Puppet Users] recurse => true

2010-01-27 Thread Peter Meier
Node and class: node default { include solaris } class solaris { file { "/etc": source => "puppet:///files-solaris/etc", recurse => true, ensure => directory, } } Solaris 10 puppet master trace: notice: Starting Puppet server versio

Re: [Puppet Users] recurse => true

2010-01-27 Thread Anchi Zhang
> > the reason why I say that it doesn't scale is that for example if the ntp >> file changes you'd like to to restart the ntp service if the ntp config >> changes and so on. Anyway the idea is to organize things that belongs >> together, for example for ntp, the package, the service and the config

Re: [Puppet Users] recurse => true

2010-01-27 Thread Peter Meier
Something like that will work: node default { include solaris } class solaris { etc_file{['motd','nsswitch.conf','pam.conf','resolv.conf']: } define etc_file(){ file { "/etc/${name}": source => "puppet:///files-solaris/etc/${name}", } } } but this approach is not very puppet-like

Re: [Puppet Users] recurse => true

2010-01-27 Thread Anchi Zhang
On Tue, Jan 26, 2010 at 2:15 PM, Anchi Zhang wrote: > > > >>> My fileserver.conf contains >> >>> >> >>> [files-solaris] >> >>> path /etc/puppet/manifests/files/solaris >> >>> allow * >> >>> >> >>> and >> >>> >> >>> puppetmaster# ls /etc/puppet/manifests/files/solaris/etc >> >>> motd ns

Re: [Puppet Users] recurse => true

2010-01-26 Thread Anchi Zhang
>>> My fileserver.conf contains > >>> > >>> [files-solaris] > >>> path /etc/puppet/manifests/files/solaris > >>> allow * > >>> > >>> and > >>> > >>> puppetmaster# ls /etc/puppet/manifests/files/solaris/etc > >>> motd nsswitch.conf pam.conf resolv.conf > >>> I would like to have th

Re: [Puppet Users] recurse => true

2010-01-26 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anchi Zhang wrote: >>> My fileserver.conf contains >>> >>> [files-solaris] >>> path /etc/puppet/manifests/files/solaris >>> allow * >>> >>> and >>> >>> puppetmaster# ls /etc/puppet/manifests/files/solaris/etc >>> motd nsswitch.conf pam.conf

Re: [Puppet Users] recurse => true

2010-01-26 Thread Anchi Zhang
> > > My fileserver.conf contains > > > > [files-solaris] > > path /etc/puppet/manifests/files/solaris > > allow * > > > > and > > > > puppetmaster# ls /etc/puppet/manifests/files/solaris/etc > > motd nsswitch.conf pam.conf resolv.conf > > I would like to have these files in /etc o

Re: [Puppet Users] recurse => true

2010-01-26 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > My fileserver.conf contains > > [files-solaris] > path /etc/puppet/manifests/files/solaris > allow * > > and > > puppetmaster# ls /etc/puppet/manifests/files/solaris/etc > motd nsswitch.conf pam.conf resolv.conf > I would like to

Re: [Puppet Users] recurse => true

2010-01-26 Thread Anchi Zhang
> > > My simple site.pp below would work. > > > > node default { include solaris } > > class solaris { > > file { "/etc/motd": > > source => "puppet:///files-solaris/etc/motd", > > recurse => true, > > } > > } > > But, if "/motd" is removed, files und

Re: [Puppet Users] recurse => true

2010-01-26 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > My simple site.pp below would work. > > node default { include solaris } > class solaris { > file { "/etc/motd": > source => "puppet:///files-solaris/etc/motd", > recurse => true, > } > } > But, if "/m

Re: [Puppet Users] recurse => true

2010-01-26 Thread Anchi Zhang
That did not seem to make any difference. I am using version 0.25.2. On Mon, Jan 25, 2010 at 5:54 PM, Carl.caum wrote: > Try adding > ensure => directory > > To your File[/etc] resource. > > > On Jan 25, 2010, at 4:25 PM, Anchi Zhang wrote: > > My simple site.pp below would work. >> >> node

Re: [Puppet Users] recurse => true

2010-01-25 Thread Carl.caum
Try adding ensure => directory To your File[/etc] resource. On Jan 25, 2010, at 4:25 PM, Anchi Zhang wrote: My simple site.pp below would work. node default { include solaris } class solaris { file { "/etc/motd": source => "puppet:///files-solaris/etc/motd",