summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorIgor Galić <i.galic@brainsware.org>2016-01-08 16:32:48 +0100
committerIgor Galić <i.galic@brainsware.org>2016-01-08 16:32:48 +0100
commit2fa05318cca28328415d2f260731b9831f6d16d5 (patch)
tree73b52882d0389f88de1251b9845943208da28db8 /manifests
parenta54d08ccaee099cb2fc66924ee2b967cea3e1f3e (diff)
parent7f9c04e1c45bd5b25c1b48206a5b52c7a08b6dfd (diff)
Merge pull request #44 from voxpupuli/fixes
Doc and implementation fixes
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
-rw-r--r--manifests/params.pp3
2 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 7fe64ca..3d9f2df 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -20,6 +20,10 @@ class unattended_upgrades (
$notify_update = undef,
) inherits ::unattended_upgrades::params {
+ if $legacy_origin == undef or $origins == undef {
+ fail('Please explicitly specify unattended_upgrades::legacy_origin and unattended_upgrades::origins.')
+ }
+
validate_bool(
$install_on_shutdown,
$legacy_origin,
diff --git a/manifests/params.pp b/manifests/params.pp
index d1b439d..e8ed8c9 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -82,7 +82,8 @@ class unattended_upgrades::params {
}
}
default: {
- fail('Please explicitly specify unattended_upgrades::legacy_origin and unattended_upgrades::origins')
+ $legacy_origin = undef
+ $origins = undef
}
}
}