We have a need for this feature:
http://projects.reductivelabs.com/issues/2836
namely to be able to hold dpkg packages in puppet manifests without
resorting to execs.
It's not entirely clear how we should best map the dpkg package model
into the puppet model, so I've sent this out to encourage
Debian/Ubuntu Puppet users to give their input.
I suggest commenting in this email thread is most useful, and I'll
collate it for the bug report, so here's my conversation with myself
in the bug report.
Description
I wasn't initially in favour of adding this to be yet another mode for
'ensure', but it does make sense as we already have installed, absent,
purged as ensure modes.
package { "bash": ensure => held }
To be consistent with the tense of "installed' and "purged" this will
be "held" rather than "hold.
Actually, this brings up an issue with how do you "unhold" a package?
Do you unhold anything that is specified to be installed ?
Do we switch to having a "hold => true/false" parameter instead?
The sane thing to do seems to be to treat "held" as a superset of
"installed", so it basically means "install and hold this package"
Given that, specifying "installed" for a package should remove any
holds in place. Does that seem reasonable? (I'll post this to the -dev
list for more comments)
--
nigel