summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorRaoul Bhatia <raoul@bhatia.at>2016-05-28 16:09:03 +0200
committerRaoul Bhatia <raoul@bhatia.at>2016-05-29 10:18:10 +0200
commitd7ead6c0c95f20fc48446c3cfdb659f555a9987a (patch)
tree0ceb7a9c4298d45327fb5878e6b580e2a1dc9b56 /manifests
parente3866999b958c91095c604b2c92f0951e6a03306 (diff)
LinuxMint: Add support for Linux Mint
Diffstat (limited to 'manifests')
-rw-r--r--manifests/params.pp36
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 29bc891..046da45 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -20,6 +20,7 @@ class unattended_upgrades::params {
$xfacts = {
'lsbdistid' => $::lsbdistid,
'lsbdistcodename' => $::lsbdistcodename,
+ 'lsbmajdistrelease' => $::lsbmajdistrelease,
}
} else {
# Strict variables facts lookup compatibility
@@ -32,6 +33,10 @@ class unattended_upgrades::params {
true => $::lsbdistcodename,
default => undef,
},
+ 'lsbmajdistrelease' => defined('$lsbmajdistrelease') ? {
+ true => $::lsbmajdistrelease,
+ default => undef,
+ },
}
}
@@ -84,6 +89,37 @@ class unattended_upgrades::params {
}
}
}
+ 'LinuxMint': {
+ case $xfacts['lsbmajdistrelease'] {
+ # Linux Mint 13 is based on Ubuntu 12.04
+ '13': {
+ $legacy_origin = true
+ $origins = [
+ 'Ubuntu:precise-security',
+ ]
+ }
+ # Linux Mint 17* is based on Ubuntu 14.04.
+ '17': {
+ $legacy_origin = true
+ $origins = [
+ 'Ubuntu:trusty-security',
+ ]
+ }
+ # Linux Mint 18* is based on Ubuntu 16.04
+ '18': {
+ $legacy_origin = true
+ $origins = [
+ 'Ubuntu:xenial-security',
+ ]
+ }
+ default: {
+ $legacy_origin = true
+ $origins = [
+ '${distro_id}:${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
+ ]
+ }
+ }
+ }
default: {
$legacy_origin = undef
$origins = undef