Versioned Deployment of Modules?

35 views
Skip to first unread message

Atom Powers

unread,
Mar 9, 2014, 1:35:17 AM3/9/14
to puppet...@googlegroups.com
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--

Nikola Petrov

unread,
Mar 10, 2014, 10:05:13 AM3/10/14
to puppet...@googlegroups.com
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
> --
> 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...@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.
Reply all
Reply to author
Forward
0 new messages