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 puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Aaron Grewell
2011-Sep-08  23:02 UTC
Re: [Puppet Users] Problems with the "source" statement
Lose the /files/ part. That''s automatic. On Thu, Sep 8, 2011 at 4:00 PM, BillS <william.shaver@darigold.com> 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 puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Sep 8, 4:02 pm, Aaron Grewell <aaron.grew...@gmail.com> wrote:> Lose the /files/ part. That''s automatic. >Sigh. Thank you. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Aaron Grewell
2011-Sep-08  23:10 UTC
Re: [Puppet Users] Re: Problems with the "source" statement
Been there. :) On Thu, Sep 8, 2011 at 4:07 PM, BillS <william.shaver@darigold.com> wrote:> > > On Sep 8, 4:02 pm, Aaron Grewell <aaron.grew...@gmail.com> wrote: > > Lose the /files/ part. That''s automatic. > > > > Sigh. Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hưng Trần
2013-Mar-11  04:46 UTC
Re: [Puppet Users] Re: Problems with the "source" statement
U save my life, Aaron. It works like a charm... Many thanks On Friday, 9 September 2011 06:10:44 UTC+7, Aaron Grewell wrote:> > Been there. :) > > On Thu, Sep 8, 2011 at 4:07 PM, BillS <william...@darigold.com<javascript:> > > wrote: > >> >> >> On Sep 8, 4:02 pm, Aaron Grewell <aaron.grew...@gmail.com> wrote: >> > Lose the /files/ part. That''s automatic. >> > >> >> Sigh. Thank you. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> puppet-users...@googlegroups.com <javascript:>. >> 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 unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.