aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2015-05-06 15:52:07 -0400
committerMicah Anderson <micah@riseup.net>2015-05-06 15:52:07 -0400
commita7cc68ed9965f665572afd9d279ebf5f3c7043d7 (patch)
treeb784d8f40c31ca0f2f5aaa5995f27e633d0f04a7 /manifests
parentd483ddbbf0801345433e8b46e6b6976814266f6b (diff)
downloadpuppet-apt-a7cc68ed9965f665572afd9d279ebf5f3c7043d7.tar.gz
puppet-apt-a7cc68ed9965f665572afd9d279ebf5f3c7043d7.tar.bz2
add $ensure_version parameter, to allow for overriding which version of unattended-upgrades is installed
Diffstat (limited to 'manifests')
-rw-r--r--manifests/unattended_upgrades.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp
index 9f74bbd..28c6092 100644
--- a/manifests/unattended_upgrades.pp
+++ b/manifests/unattended_upgrades.pp
@@ -3,10 +3,11 @@ class apt::unattended_upgrades (
$mailonlyonerror = true,
$mail_recipient = 'root',
$blacklisted_packages = [],
+ $ensure_version = present
) {
package { 'unattended-upgrades':
- ensure => present
+ ensure => $ensure_version
}
$file_content = $config_content ? {