One thing I've noticed is that you've typo'd your templatedir for
production, it's $confidr. Are there any useful errors in the puppet
master logs? And just for a lark, could you run puppet agent -tv
--environment=production on one of your nodes?

On Tue, Oct 11, 2011 at 11:13 AM, Deven Phillips
<deven.phill...@gmail.com> wrote:
> Adrien,
>
>    I did double check, and the directories do exist. I am running purely
> against production right now as I have yet to configure any of my agents to
> use a different environment.
>
> Deven
>
> On 10/11/2011 02:08 PM, Adrien Thebo wrote:
>>
>> When I've run into this error, it was due to the environment
>> manifestdir/modulepath/templatedir not being set correctly or not
>> existing. Are you certain that those directories exist? What
>> environment is demonstrating this?
>>
>> On Tue, Oct 11, 2011 at 10:30 AM, Deven Phillips
>> <deven.phill...@gmail.com>  wrote:
>>>
>>> Hello all,
>>>     I have been searching through the list archives, but I have yet to
>>> find
>>> an answer to my question. The problem I am having is this:
>>> 1. I have been using puppet without environments for some time now and it
>>> works properly
>>> 2. I am trying to reconfigure to use environments, and I am getting
>>> errors
>>> with plugins not getting sync'd.
>>> The error I see on the agent node is:
>>> err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve
>>> information from environment production source(s) puppet://lou1/plugins
>>> notice: /File[/var/lib/puppet/lib/puppet]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet]: Skipping because of failed
>>> dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/test]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/test]: Skipping because of
>>> failed
>>> dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/test/iptables.rb]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/test/iptables.rb]: Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider]: Skipping because of
>>> failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo]: Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/cvs.rb]:
>>> Dependency File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/cvs.rb]:
>>> Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/git.rb]:
>>> Dependency File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/git.rb]:
>>> Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/svn.rb]:
>>> Dependency File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/svn.rb]:
>>> Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/hg.rb]:
>>> Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/hg.rb]:
>>> Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/bzr.rb]:
>>> Dependency File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo/bzr.rb]:
>>> Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/type]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/type]: Skipping because of
>>> failed
>>> dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/type/vcsrepo.rb]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/type/vcsrepo.rb]: Skipping
>>> because
>>> of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/type/iptables.rb]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/type/iptables.rb]: Skipping
>>> because of failed dependencies
>>> notice: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo.rb]: Dependency
>>> File[/var/lib/puppet/lib] has failures: true
>>> warning: /File[/var/lib/puppet/lib/puppet/provider/vcsrepo.rb]: Skipping
>>> because of failed dependencies
>>> On the puppet master, I changed my puppet.conf from:
>>> [main]
>>> logdir=/var/log/puppet
>>> vardir=/var/lib/puppet
>>> ssldir=/etc/puppet/ssl
>>> rundir=/var/run/puppet
>>> factpath=$vardir/lib/facter
>>> templatedir=$confdir/templates
>>> prerun_command=/etc/puppet/etckeeper-commit-pre
>>> postrun_command=/etc/puppet/etckeeper-commit-post
>>> server = lou1
>>> certname = lou1
>>> [master]
>>> # These are needed when the puppetmaster is run by passenger
>>> # and can safely be removed if webrick is used.
>>> ssl_client_header = SSL_CLIENT_S_DN
>>> ssl_client_verify_header = SSL_CLIENT_VERIFY
>>> modulepath=/etc/puppet/modules
>>> storeconfigs=true
>>> dbadapter=postgresql
>>> dbuser=foreman
>>> dbpassword=foreman
>>> dbserver=localhost
>>> dbname=foreman
>>> reports=log, foreman
>>> certname=lou1
>>> server=lou1
>>> To:
>>> [main]
>>> logdir=/var/log/puppet
>>> vardir=/var/lib/puppet
>>> ssldir=/etc/puppet/ssl
>>> rundir=/var/run/puppet
>>> factpath=$vardir/lib/facter
>>> templatedir=$confdir/prod/templates
>>> prerun_command=/etc/puppet/etckeeper-commit-pre
>>> postrun_command=/etc/puppet/etckeeper-commit-post
>>> server = lou1
>>> certname = lou1
>>> [master]
>>> # These are needed when the puppetmaster is run by passenger
>>> # and can safely be removed if webrick is used.
>>> ssl_client_header = SSL_CLIENT_S_DN
>>> ssl_client_verify_header = SSL_CLIENT_VERIFY
>>> modulepath=/etc/puppet/prod/modules
>>> storeconfigs=true
>>> dbadapter=postgresql
>>> dbuser=foreman
>>> dbpassword=foreman
>>> dbserver=localhost
>>> dbname=foreman
>>> reports=log, foreman
>>> certname=lou1
>>> server=lou1
>>> [production]
>>> manifest = $confdir/prod/manifests/site.pp
>>> manifestdir = $confdir/prod/manifests
>>> modulepath = $confdir/prod/modules
>>> templatedir = $confidr/prod/templates
>>> [staging]
>>> manifest = $confdir/staging/manifests/site.pp
>>> manifestdir = $confdir/staging/manifests
>>> modulepath = $confdir/staging/modules
>>> templatedir = $confidr/staging/templates
>>> [dev]
>>> manifest = $confdir/dev/manifests/site.pp
>>> manifestdir = $confdir/dev/manifests
>>> modulepath = $confdir/dev/modules
>>> templatedir = $confidr/dev/templates
>>> Puppet Master is running 2.7.3 and the agents are a mix of 2.6.x
>>> versions.
>>> Any suggestions would be greatly appreciated...
>>> Thanks,
>>> Deven Phillips
>>> Senior Systems Administrator
>>> DNS.com, A Comodo Company
>>>
>>> --
>>> 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to