diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 4 | ||||
-rw-r--r-- | manifests/params.pp | 3 |
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 } } } |