unattended_upgrades: Allow changing legacy_origin
[puppet-modules/puppetlabs-apt.git] / manifests / unattended_upgrades.pp
index b835b9a6a5ed57483175739eda3cf8929e292c75..028ffc647c0ba74dbcdc6d2d4c258d70eab3f211 100644 (file)
@@ -14,6 +14,7 @@
 # file and in /etc/cron.daily/apt
 #
 class apt::unattended_upgrades (
+  $legacy_origin       = $::apt::params::legacy_origin,
   $origins             = $::apt::params::origins,
   $blacklist           = [],
   $update              = '1',
@@ -40,6 +41,7 @@ class apt::unattended_upgrades (
 ) inherits ::apt::params {
 
   validate_bool(
+    $legacy_origin,
     $auto_fix,
     $minimal_steps,
     $install_on_shutdown,