On 2014-12-01 22:10, leam hall wrote:
I've heard that the goal is to move away from a
~hieradata/{dev|test|prod} directory structure to use Facts. What I
haven't seen is how to control module versions with that. If you
update mymodule and put it in the ~puppet/modules directory, what
makes dev boxes get the new one and prod get the old one?
I'd say you're looking for directory environments:

https://docs.puppetlabs.com/puppet/latest/reference/environments.html

E.g., you could have modules for prod nodes in /etc/puppet/environments/production/modules, and modules for dev nodes in /etc/puppet/environments/development/modules.

When you assign your nodes to one of the defined environments, they will load the
respective modules.

Hth,
Tom.

--
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/b0b244d271c2a4f31c68d71afc12318e%40sigsegv.at.
For more options, visit https://groups.google.com/d/optout.

Reply via email to