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
Remove default support for Linux Mint and Cumulus Networks
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
ppa.pp
diff --git
a/manifests/ppa.pp
b/manifests/ppa.pp
index 33cd60d586c1b7d42e9357edca8f7904abf07d13..808c9751a042b32196dfc8c918216699f5085748 100644
(file)
--- a/
manifests/ppa.pp
+++ b/
manifests/ppa.pp
@@
-1,17
+1,17
@@
# ppa.pp
define apt::ppa(
$ensure = 'present',
# ppa.pp
define apt::ppa(
$ensure = 'present',
- $release = $::lsbdistcodename,
$options = $::apt::ppa_options,
$options = $::apt::ppa_options,
+ $release = $::apt::xfacts['lsbdistcodename'],
$package_name = $::apt::ppa_package,
$package_manage = false,
) {
$package_name = $::apt::ppa_package,
$package_manage = false,
) {
-
if !
$release {
+
unless
$release {
fail('lsbdistcodename fact not available: release parameter required')
}
fail('lsbdistcodename fact not available: release parameter required')
}
- if $::apt::
distid != 'ubuntu
' {
- fail('apt::ppa is
currently supported on Ubuntu and LinuxMint only
.')
+ if $::apt::
xfacts['lsbdistid'] == 'Debian
' {
+ fail('apt::ppa is
not currently supported on Debian
.')
}
$filename_without_slashes = regsubst($name, '/', '-', 'G')
}
$filename_without_slashes = regsubst($name, '/', '-', 'G')
@@
-60,9
+60,4
@@
define apt::ppa(
notify => Exec['apt_update'],
}
}
notify => Exec['apt_update'],
}
}
-
- # Need anchor to provide containment for dependencies.
- anchor { "apt::ppa::${name}":
- require => Class['apt::update'],
- }
}
}