FAQ
I'm using puppet 3.0
i install puppet by these two command:

sudo rpm -i
http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-6.noarch.rpm
sudo yum install puppet-server

as
http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#for-red-hat-enterprise-linux-and-derivatives
and
http://docs.puppetlabs.com/guides/installation.html#enterprise-linux-and-derivatives
says.
i use these command to start puppetmaster:

sudo /etc/init.d/puppet start
sudo /etc/init.d/puppetmaster start

and these was no error message

then i put a site.pp(in attachment) under /etc/puppet/manifests.
when i use "sudo puppet apply --noop -v site.pp", i got the following error:

err: /Stage[main]//Node[default]/File[/sudoers]: Could not evaluate:
Could not retrieve information from environment production source(s)
puppet:///modules/sudo/sudoers at /etc/puppet/manifests/site.pp:8

i have the FQDN resolv to myself:
grep `hostname` /etc/hosts
192.168.1.116 centos centos.test.com

i have myself certified:
sudo puppet ca list --all|grep `hostname`
+ centos.test.com (D4:A4:1F:7B:D5:FF:A0:20:13:7B:82:CF:8A:8A:0B:98)

puppet master --configprint certname
centos.test.com

i put the result of "sudo puppet apply --noop -dv site.pp" into
puppet_debug.log under /etc/puppet/, and i package the whole
/etc/puppet/ up in the attachment.
in case of the attachment didn't work, i put this file on my vps too:

http://106.187.50.36/puppet.tgz

now i don't know what to do since i can't find anything helpful in the
debug log. any help will be 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.

Search Discussions

  • Jakov Sosic at Nov 28, 2012 at 7:43 am

    On 11/28/2012 05:22 AM, 夏凯 wrote:

    then i put a site.pp(in attachment) under /etc/puppet/manifests.
    when i use "sudo puppet apply --noop -v site.pp", i got the following
    error:

    err: /Stage[main]//Node[default]/File[/sudoers]: Could not evaluate:
    Could not retrieve information from environment production source(s)
    puppet:///modules/sudo/sudoers at /etc/puppet/manifests/site.pp:8
    You need to move /etc/puppet/modules/sudo/sudoers to
    /etc/puppet/modules/sudo/files/sudoers


    Hope that helps.




    --
    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.
  • 夏凯 at Nov 28, 2012 at 9:34 am

    On 2012年11月28日 15:43, Jakov Sosic wrote:
    You need to move /etc/puppet/modules/sudo/sudoers to
    /etc/puppet/modules/sudo/files/sudoers
    thanks, i'll try this later.

    --
    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.
  • 夏凯 at Nov 28, 2012 at 9:34 am

    On 2012年11月28日 16:50, 夏凯 wrote:
    On 2012年11月28日 15:43, Jakov Sosic wrote:
    You need to move /etc/puppet/modules/sudo/sudoers to
    /etc/puppet/modules/sudo/files/sudoers
    thanks, i'll try this later.
    that works, thanks again.

    --
    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.
  • Shawn Miller at Jul 27, 2014 at 9:22 pm
    Mine is that way-
    /etc/puppet/modules/sudo/files/sudoers
    # cat modules/sudo/manifests/init.pp
    class sudo {
    package { sudo:
    ensure => present,
    }
    if $operatingsystem == "Ubuntu" {
    package { "sudo-ldap":
    ensure => present,
    require => Package["sudo"],
    }
    }
    file { "/etc/sudoers":
    owner => "root",
    group => "root",
    mode => 0440,
    source => "puppet://$puppetserver/modules/sudo/files/sudoers",
    require => Package["sudo"],
    }
    }

    and I still get :::
    Error: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Could not
    retrieve information from environment production source(s)
    puppet://vb001o13.woodbeeco.com/modules/sudo/files/sudoers

    puppet.conf--
    [main]
         logdir = /var/log/puppet

         rundir = /var/run/puppet

         ssldir = $vardir/ssl
         moduledir = /etc/puppet/modules:/var/lib/puppet/modules:/opt/modules
         autosign = true

    manifests/site.pp --
    import 'nodes/*'
    #import 'classes/*'
    $puppetserver = 'vb001o13.woodbeeco.com'

    manifests/nodes/nodes.pp --
    node 'vb001o13.woodbeeco.com' {
    include sudo
    # include ntp
    }

    node 'vb002o13.woodbeeco.com' {
    include sudo
    # include ntp
    }

    On Wednesday, November 28, 2012 2:50:55 AM UTC-6, 凯夏 wrote:
    On 2012年11月28日 15:43, Jakov Sosic wrote:
    You need to move /etc/puppet/modules/sudo/sudoers to
    /etc/puppet/modules/sudo/files/sudoers
    thanks, i'll try this later.
    --
    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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/62da086b-4cef-4799-a5ed-790c9dbe328d%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Jcbollinger at Jul 28, 2014 at 1:54 pm

    On Saturday, July 26, 2014 3:51:44 PM UTC-5, Shawn Miller wrote:
    Mine is that way-
    /etc/puppet/modules/sudo/files/sudoers
    # cat modules/sudo/manifests/init.pp
    class sudo {
    package { sudo:
    ensure => present,
    }
    if $operatingsystem == "Ubuntu" {
    package { "sudo-ldap":
    ensure => present,
    require => Package["sudo"],
    }
    }
    file { "/etc/sudoers":
    owner => "root",
    group => "root",
    mode => 0440,
    source => "puppet://$puppetserver/modules/sudo/files/sudoers",

    It's usually better to write that source URL as
    'puppet:///modules/sudo/files/sudoers'. The agent will then request the
    file from the same server that provided its manifest. That's what you're
    doing anyway, but yours has more code, and using a variable gives it higher
    conceptual weight.


    require => Package["sudo"],
    }
    }

    and I still get :::
    Error: /Stage[main]/Sudo/File[/etc/sudoers]: Could not evaluate: Could not
    retrieve information from environment production source(s) puppet://
    vb001o13.woodbeeco.com/modules/sudo/files/sudoers
    If the file is where it's supposed to be, but you still get that error,
    then it probably means the master cannot read it to serve it. Check
    ownership and access controls, remembering that the master normally runs as
    an ordinary user, not a privileged one.


    John

    --
    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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/855783fe-0b70-4b5b-a124-99ae1a58ae01%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedNov 28, '12 at 4:39a
activeJul 28, '14 at 1:54p
posts6
users4
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase