Lose the /files/ part.  That's automatic.

On Thu, Sep 8, 2011 at 4:00 PM, BillS <[email protected]> wrote:

> I am new to puppet and have been trying to work my way through the
> tutorial materials on the PuppetLab site as well as the "Pro Puppet"
> book (and anything else I can find via google). I did not get very far
> before I got tripped up with what would seem to be a very basic
> "source" statement. I am sure the problem is something stupid I have
> done, but I have exhausted the resources I can find.
>
> The error I am seeing on the client:
> [root@devora01]# puppet agent --server dhqlxdba02 --no-daemonize --
> verbose --onetime
> info: Retrieving plugin
> info: Caching catalog for devora01
> info: Applying configuration version '1315519689'
> err: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Could
> not retrieve information from source(s)
> puppet:///modules/sudo/files/sudoers
> at /etc/puppetlabs/puppet/modules/sudo/manifests/init.pp:15
> notice: Finished catalog run in 0.37 seconds
>
> The module manifest file:
> [root@dhqlxdba02]# cat   /etc/puppetlabs/puppet/modules/sudo/manifests/
> init.pp
> #
> class sudo {
>    package { sudo:
>        ensure  => present,
>    }
>    file { '/etc/sudoers':
>        ensure  => file,
>        owner   => 'root',
>        group   => 'root',
>        mode    => '0440',
>        source  => "puppet:///modules/sudo/files/sudoers",
>        require => Package['sudo'],
>    }
> }
>
> The file I am "sourcing" (I have confirmed permissions of 755 on all
> the directories in the path.)
> [root@dhqlxdba02]# ls -l /etc/puppetlabs/puppet/modules/sudo/files/
> sudoers
> -r--r--r-- 1 root root 3401 Aug 23 12:36 /etc/puppetlabs/puppet/
> modules/sudo/files/sudoers
>
> And other versions of the source statement I have tried, all of which
> have yielded the same error result.
>        # source        => '/etc/sudoers',
>        # source        => '/etc/puppetlabs/puppet/modules/sudo/files/
> sudoers',
>
> Any suggestions? Any FAQ I should be aware of instead of asking dumb
> questions here? Any and all guidance is appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to