Re: [Puppet Users] Begining with puppet.

Todd Zullinger
Mon, 10 May 2010 15:57:31 -0000

Marley Bacelar wrote:
> I am trying to do my first puppet configuration, already installed the
> puppetserver and client, in this link show my configuration and my puppet
> structure:
>
> http://paste.pocoo.org/show/212227/

Which reads, in part:

> # ls /etc/puppet/ #
> files  fileserver.conf  manifests  modules  puppet.conf
>
> # fileserver.conf #
> [files]
> path /etc/puppet/files/
> allow 192.168.0.0/24

So you''ve got a ''files'' mount here.

> # ls /etc/puppet/manifests/classes #
> inittab.pp
>
> # inittab.pp #
> class inittab {
>         file {
>                 "inittab":
>                         mode => 644, owner => root, group => root,
>                         ensure => present,
>                         path   => $operatingsystem ?{
>                                 default => "/etc/inittab",
>                         },
>                         source =>
"puppet://$servername/inittab",
>         }
>
> }

And your source parameter doesn''t use the files mount.  You''d
want to
use ''puppet://$servername/files/inittab'' there.

> # ls /etc/puppet/file #
> inittab

I presume you made a typo there, as the dir should be files, not file.

--
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The ultimate result of shielding men from the effects of folly is to
fill the world with fools.
    -- Herbert Spencer