@Carthik and @John, thank you both for your input.  I finally got this to 
work earlier in the week but did not have a chance to post.

Here's what I changed on puppetmaster's 
`/etc/puppetlabs/puppet/puppet.conf` :
[main]
environmentpath = /etc/puppetlabs/code/environments
node_terminus = exec
external_nodes = /etc/puppetlabs/code/environments/node.rb

[master]
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code
server = puppetmaster.domain.ca
storeconfigs = true
storeconfigs_backend = puppetdb
node_terminus = exec
external_nodes = /etc/puppetlabs/code/environments/node.rb

I essentially, removed basemodulepath as this was what was causing my 
suspicion (obvioulsy the wrong `modules` path was being loaded and this had 
to do with order of file loading).
In the `ops` environment's environment.conf file, I did the same in the 
hopes that I was forcing the default environmental paths only:
modulepath = ./modules:./classes
manifest = ./manifests

So now, my puppet runs do exactly as I expect for both `production` and 
`ops` (pasting ops node output here) :

[r...@node.domain.ca ~]# puppet agent -o -v --no-daemonize
Info: Using configured environment 'ops'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for node.domain.ca
Info: Applying configuration version '1488089754'
Notice: Applied catalog in 23.46 seconds

This is great, now. Thank you both!

Of course, if there are any recommendations on basemodulepath management or 
if anyone thinks this should be overridden in a different way, I'm open to 
suggestions.


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/49012dd5-de73-49ad-8923-14e476715edc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to