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,
>>
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
>
> 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
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
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
>>> 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
-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
>
> > 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
-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
>
> > 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
-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
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
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",
13 matches
Mail list logo