On Thursday, October 10, 2013 8:52:37 AM UTC-5, pezhore wrote:
>
> I'm trying to get a small Puppet Enterprise environment setup for testing 
> - just three servers: a Gitlab box for manifest/module version control, the 
> puppet enterprise server, and a test ubuntu box. I believe I have a pretty 
> decent handle on how to automatically pull down updates from the git 
> repository using Sinatra and a web hook, but I'm at the point where I need 
> to figure out how to get this new repository available for my ubuntu box to 
> actually use.
>
> I believe this is the relevant information about my setup:
>
> [...] 

>
> puppet.conf
>
> [main]
>     certname = puppet-test.local.dom
>     vardir = /var/opt/lib/pe-puppet
>     logdir = /var/log/pe-puppet
>     rundir = /var/run/pe-puppet
>     modulepath = 
> /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
>     server = puppet-test.local.dom
>     user  = pe-puppet
>     group = pe-puppet
>     archive_files = true
>     archive_file_server = puppet-test.local.dom
>
>

[...]
 
 

> [agent]
>     report = true
>     classfile = $vardir/classes.txt
>     localconfig = $vardir/localconfig
>     graph = true
>     pluginsync = true
>     environment = production
>
> [dev]
>     environment = dev
>     manifest = /etc/puppetlabs/puppet/environments/dev/site.pp
>     modulepath = 
> /etc/puppetlabs/puppet/environments/dev/modules:/etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
>
>
>
>

To set an environment on a per-node basis, the [agent] block in puppet.conf 
on each node should specify the correct environment setting, or else you 
should use an ENC that sets the the environment.  Your configuration sets 
environment 'production' for agents, which is the default, and for which 
you have no per-environment settings defined anyway.  It is useless to set 
the environment in a per-environment block (i.e. in the [dev] block), 
because the environment must have already been determined for the contents 
of a per-environment block to be used.

 

> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Could not find class apache for ubuntu1204-puppet.local.dom on node 
> ubuntu1204-puppet.local.dom
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
>
> I guess I'm just looking for what I might have missed. Any thoughts?
>
>
>
Your node is in environment 'production', and the module path for that 
environment does not contain the apache module.  Your main 
manifests/site.pp file must be declaring class apache for the node, as the 
dev/site.pp will not have been consulted.


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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to