On Fri, Feb 25, 2011 at 5:10 AM, Thomas Bellman <[email protected]> wrote:
> On 2011-02-25 13:27, Dave Augustus wrote: > > > I have added the following in my puppetmaster.conf file: > > > > [production] > > manifest = $vardir/env/production/manifests/site.pp > > modulepath = > $vardir/env/production/modules:$vardir/env/common/modules > > [test] > > manifest = $vardir/env/test/manifests/site.pp > > modulepath = $vardir/env/test/modules:$vardir/env/common/modules > > [development] > > manifest = $vardir/env/development/manifests/site.pp > > modulepath = > $vardir/env/development/modules:$vardir/env/common/modules > > > > On each client, in puppet.conf: > > > > [main] > > environment = test > > > > The end result is 3 sets of manifests and modules. I then can move a > > module between the environments as needed. > > But you can't have different versions of the external node classifier > script in your environments. You can't try out a new version of that > in development, while still having the tried and trusted version > running in production. > > Unless you go for a wrapper script that just digs out the environment > from /var/lib/puppet/yaml/facts/NODENAME.yaml and execs the script > that belongs to that environment. And except for the part of digging > through a YAML file, it is a pretty easy thing to do, but it is a tiny > bit ugly. > > Dave, we're sticking with text files for external nodes because revision control is important to us, and I'm quite surprised why it's not important for others as well. Here's another question.... where is the best place to put the external nodes if they are files? Should they be above the environments (ie /etc/puppet/manifests/extdata/nodes), or should they be put INTO the environments (ie /etc/puppet/env/env1/manifests/extdata/nodes). Which one makes more sense? Doug. -- 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.
