diff options
author | intrigeri <intrigeri@boum.org> | 2013-01-23 23:10:40 +0100 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2013-02-16 14:58:43 -0500 |
commit | d51e2af9d452731f63b2fe16391e9cd2ff9d640f (patch) | |
tree | fc42404332cc78a21c15b062bfed7d8d6b1c39d7 /templates/Debian/preferences_wheezy.erb | |
parent | 14670466be5eceba043e697d5f6f0f0ada9d5b07 (diff) | |
download | puppet-apt-d51e2af9d452731f63b2fe16391e9cd2ff9d640f.tar.gz puppet-apt-d51e2af9d452731f63b2fe16391e9cd2ff9d640f.tar.bz2 |
Don't check for a package priority to be set when removing an APT preferences snippet.
The problem I'm facing is that the sanity checks prevent one from
using a simple:
apt::preferences_snippet { "bla": ensure => absent }
So, first set a default value for the `priority' parameter, so
that it's not required anymore. Second, add a sanity check to
error out when priority is not set, to get the safe old behaviour.
Then, wrap all sanity checks about arguments within
a "if $ensure == 'present'" block.
Diffstat (limited to 'templates/Debian/preferences_wheezy.erb')
0 files changed, 0 insertions, 0 deletions