On Friday, December 19, 2014 10:12:03 AM UTC-6, Joseph Lombardo wrote: > > Sorry, I should have been more thorough with my explanation. We use > Spacewalk to manage our repositories and package installations/updates. > However, when a system first comes up it is puppet that registers it in > spacewalk and does the initial package install. The reason we want to > ensure => present but install a particular version is that we may be doing > updates on something like MySQL which means there are newer versions in the > repo but we want our current production version installed on new machines. > The updates are performed with Spacewalk on servers as we roll through then > once everything is updated we change the version in Puppet. Otherwise, > large amounts of time would need to be spent setting the versions > individually on each node. If it was a handful of servers there wouldn't be > an issue but when it is hundreds to roll an update through, pushing out > individual node exclusions is too much. > >
That explains your thinking, but it's really not a very good reason for approaching the problem is you suggest doing. If different machines have inconsistent requirements on what should be installed, then those machines should not be served by the same declarations. Have you considered using a different (Puppet) environment for initially configuring new servers than for configuring others? Say a "provisioning" environment and a "production" environment? In the "provisioning" environment you 'ensure' whatever specific versions of these packages you want, and in the "production" environment you just 'ensure' "present" (or whatever). You can share as much of your manifest set as is appropriate between environments. Perhaps you could even share *everything*, and let Hiera make the environment-based distinction. John -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6146aa44-2913-4b70-9fe3-71cea58e5633%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
