Look at http://docs.puppetlabs.com/guides/environment.html especially
this part
http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master.
You can specify different modules directories based on the environment
and then put different version of base.pp depending on the environment
variable.


-- 
Nikola

On Sat, Mar 08, 2014 at 10:35:17PM -0800, Atom Powers wrote:
> I have, I think, a fairly "modern" setup of Puppet 3, hiera, ENC for
> external facts, role/stack meta-module etc. I have a single puppetmaster
> and I'm not inclined to do any kind of "master-less" puppet.
> 
> I am implementing a new monitoring system and it is a pretty big change. I
> don't want to deploy that to every host in my infrastructure at the same
> time. I want to be able to deploy a different version of my meta-module to
> different hosts.
> 
> What is the "best" way to deploy different version of a module to different
> hosts? I expect I could do something with environments but I'm not sure
> what that looks like?
> 
> ==== Simple host description
> ENC data for host.domain.tld:
> role=webserver
> environment=production
> ----
> webserver.yaml
> classes:
>  - base
>  - nginx
> ----
> base.pp v1
> include nagios
> ----
> base.pp v2
> include pandorafms
> 
> 
> -- 
> Perfection is just a word I use occasionally with mustard.
> --Atom Powers--
> 
> -- 
> 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/CAF-H%3DO%3DoF4u%3DaCRMEsw3QuC1PS58j1bv01p1zAA73ZMu2dPMxg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/20140310140513.GB934%40nikolavp-desktop.
For more options, visit https://groups.google.com/d/optout.

Reply via email to