Update docs and test for $legacy_origin
This commit is contained in:
parent
3799e3a23c
commit
81bb96c898
2 changed files with 3 additions and 1 deletions
|
@ -278,6 +278,7 @@ apt::sources:
|
|||
|
||||
####apt::unattended_upgrades
|
||||
|
||||
* `legacy_origin`: If set to true, use the old `Unattended-Upgrade::Allowed-Origins` variable. If false, use `Unattended-Upgrade::Origins-Pattern`. OS-dependent defaults are defined in `apt::params`.
|
||||
* `origins`: The repositories from which to automatically upgrade included packages.
|
||||
* `blacklist`: A list of packages to **not** automatically upgrade.
|
||||
* `update`: How often, in days, to run `apt-get update`.
|
||||
|
|
|
@ -155,6 +155,7 @@ describe 'apt::unattended_upgrades', :type => :class do
|
|||
|
||||
let :params do
|
||||
{
|
||||
'legacy_origin' => true,
|
||||
'enable' => '0',
|
||||
'backup_interval' => '3',
|
||||
'backup_level' => '1',
|
||||
|
@ -181,7 +182,7 @@ describe 'apt::unattended_upgrades', :type => :class do
|
|||
}
|
||||
end
|
||||
|
||||
it { is_expected.to contain_file("/etc/apt/apt.conf.d/50unattended-upgrades").with_content %r{Unattended-Upgrade::Origins-Pattern \{\n\t"bananas";\n\};} }
|
||||
it { is_expected.to contain_file("/etc/apt/apt.conf.d/50unattended-upgrades").with_content %r{Unattended-Upgrade::Allowed-Origins \{\n\t"bananas";\n\};} }
|
||||
it { is_expected.to contain_file("/etc/apt/apt.conf.d/50unattended-upgrades").with_content %r{Unattended-Upgrade::Package-Blacklist \{\n\t"foo";\n\t"bar";\n\};} }
|
||||
it { is_expected.to contain_file("/etc/apt/apt.conf.d/50unattended-upgrades").with_content %r{Unattended-Upgrade::AutoFixInterruptedDpkg "false";}}
|
||||
it { is_expected.to contain_file("/etc/apt/apt.conf.d/50unattended-upgrades").with_content %r{Unattended-Upgrade::MinimalSteps "true";}}
|
||||
|
|
Loading…
Reference in a new issue