I got the solution as I realize that puppet server needs to have only
one nodes.pp for every environment and as client with different
environments connect puppet looks for their module paths and install
the respective packages, all the node entries irrespective of the
environment they are attached to goes in the /etc/puppet/manifests/
nodes.pp.

Please correct me if I am wrong.

On Jul 13, 11:18 am, newguy <[email protected]> wrote:
> I have two development environments, main and development and  my
> puppet.conf looks like this:
>
> [main]
> logdir=/var/log/puppet
> vardir=/var/lib/puppet
> ssldir=/var/lib/puppet/ssl
> rundir=/var/run/puppet
> factpath=$vardir/lib/facter
> pluginsync=false
> templatedir=$confdir/templates
> prerun_command=/etc/puppet/etckeeper-commit-pre
> postrun_command=/etc/puppet/etckeeper-commit-post
>
> [development]
> modulepath = /etc/puppet/environments/development/modules
> manifests=/etc/puppet/environments/development/manifests/site.pp
>
> I have made nodes.pp for both environments.
>
> now when I execute the following on the client:
> puppetd --test --verbose --environment development
> it access the nodes.pp in the /etc/puppet/manifests rather than going
> to /etc/puppet/environments/development/manifests/nodes.pp
>
> In my site.pp stored at /etc/puppet/environments/development/manifests/
> site.pp I have the following:
> import 'nodes.pp'
>
> How should I make puppet access the correct nodes.pp???

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to