夏凯
2012-Nov-28 04:22 UTC
[Puppet Users] Could not retrieve information from environment production source
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.
Jakov Sosic
2012-Nov-28 07:43 UTC
Re: [Puppet Users] Could not retrieve information from environment production source
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:8You 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.
夏凯
2012-Nov-28 08:50 UTC
Re: [Puppet Users] Could not retrieve information from environment production source
On 2012年11月28日 15:43, Jakov Sosic wrote:> You need to move /etc/puppet/modules/sudo/sudoers to > /etc/puppet/modules/sudo/files/sudoersthanks, 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.
夏凯
2012-Nov-28 08:59 UTC
Re: [Puppet Users] Could not retrieve information from environment production source
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.