Skip to content

Commit

Permalink
* fix: adapting to new buster default origins voxpupuli#145
Browse files Browse the repository at this point in the history
  • Loading branch information
deubert-it committed Aug 26, 2019
1 parent a5096e4 commit 9c4f8c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,23 @@
case $xfacts['lsbdistcodename'] {
'squeeze', 'wheezy': {
$legacy_origin = true
$origins = ['${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
'${distro_id} ${distro_codename}-lts',] #lint:ignore:single_quote_string_with_variables
$origins = [
'${distro_id} ${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
'${distro_id} ${distro_codename}-lts', #lint:ignore:single_quote_string_with_variables
]
}
'buster': {
$legacy_origin = false
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
default: {
$legacy_origin = false
$origins = ['origin=Debian,codename=${distro_codename},label=Debian-Security',] #lint:ignore:single_quote_string_with_variables
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
}
}
Expand Down
1 change: 1 addition & 0 deletions spec/classes/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
).with_content(
# This section varies for different releases
/\Unattended-Upgrade::Origins-Pattern\ {\n
\t"origin=Debian,codename=\${distro_codename},label=Debian";\n
\t"origin=Debian,codename=\${distro_codename},label=Debian-Security";\n
};/x
)
Expand Down

0 comments on commit 9c4f8c5

Please sign in to comment.