Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
(GH-1038) add support for `check-valid-until` configuration
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
params.pp
diff --git
a/manifests/params.pp
b/manifests/params.pp
index 58ce9ed2831939e848e543200610a6b171169b07..5ef175b713d46b5f7caca0e9102b8aa0958160a4 100644
(file)
--- a/
manifests/params.pp
+++ b/
manifests/params.pp
@@
-3,7
+3,6
@@
# @api private
#
class apt::params {
# @api private
#
class apt::params {
-
if $facts['os']['family'] != 'Debian' {
fail('This module only works on Debian or derivatives like Ubuntu')
}
if $facts['os']['family'] != 'Debian' {
fail('This module only works on Debian or derivatives like Ubuntu')
}
@@
-44,7
+43,7
@@
class apt::params {
'list' => {
'path' => $sources_list_d,
'ext' => '.list',
'list' => {
'path' => $sources_list_d,
'ext' => '.list',
- }
+ }
,
}
$update_defaults = {
}
$update_defaults = {
@@
-76,7
+75,7
@@
class apt::params {
'src' => false,
}
'src' => false,
}
- case $facts['os']['name']{
+ case $facts['os']['name']
{
'Debian': {
$backports = {
'location' => 'http://deb.debian.org/debian',
'Debian': {
$backports = {
'location' => 'http://deb.debian.org/debian',
@@
-84,11
+83,7
@@
class apt::params {
}
$ppa_options = undef
$ppa_package = undef
}
$ppa_options = undef
$ppa_package = undef
- if versioncmp($facts['os']['release']['major'], '9') >= 0 {
- $auth_conf_owner = '_apt'
- } else {
- $auth_conf_owner = 'root'
- }
+ $auth_conf_owner = '_apt'
}
'Ubuntu': {
$backports = {
}
'Ubuntu': {
$backports = {
@@
-98,11
+93,7
@@
class apt::params {
}
$ppa_options = '-y'
$ppa_package = 'software-properties-common'
}
$ppa_options = '-y'
$ppa_package = 'software-properties-common'
- if versioncmp($facts['os']['release']['full'], '16.04') >= 0 {
- $auth_conf_owner = '_apt'
- } else {
- $auth_conf_owner = 'root'
- }
+ $auth_conf_owner = '_apt'
}
undef: {
fail('Unable to determine value for fact os[\"name\"]')
}
undef: {
fail('Unable to determine value for fact os[\"name\"]')