Hey there, On 15/05/13 08:24 PM, sjr wrote: > The thing is we would like to be able to specify a version for the > package and tell dpkg to hold it to prevent unwanted upgrades (mainly > because human errors). As I haven't been able to get it working with > current APT provider I would like if with its current status this is > possible...
if you provide a version in the "ensure" parameter, then puppet will install this specific version.. but the way we do it where I work is to have puppet drop a file in /etc/apt/preferences.d and pin it. See [0] for more info on pinning (it doesn't talk about preferences.d, but everything that can go in /etc/apt/preferences can be split in different files in /etc/apt/preferences.d) [0]: http://wiki.debian.org/AptPreferences this way, you're sure that no operation, should it be puppet or manual interventions will upgrade the package. -- Gabriel Filion
signature.asc
Description: OpenPGP digital signature