unattended_upgrades: Allow changing legacy_origin

This enables using Origins-Pattern in Ubuntu.
This commit is contained in:
Mikko Pesari 2015-02-18 18:09:53 +02:00 committed by Morgan Haskel
parent 97f70034c9
commit 3799e3a23c
2 changed files with 9 additions and 6 deletions

View file

@ -74,6 +74,7 @@ class { 'apt':
```
class { 'apt::unattended_upgrades':
legacy_origin => $::apt::params::legacy_origin,
origins => $::apt::params::origins,
blacklist => [],
update => '1',

View 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,