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
Merge pull request #560 from mhaskel/MODULES-2446
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
ppa.pp
diff --git
a/manifests/ppa.pp
b/manifests/ppa.pp
index 808c9751a042b32196dfc8c918216699f5085748..6352352c8d54711baeffecb0871c0dfa17bfc4eb 100644
(file)
--- a/
manifests/ppa.pp
+++ b/
manifests/ppa.pp
@@
-31,9
+31,9
@@
define apt::ppa(
$_proxy = $::apt::_proxy
if $_proxy['host'] {
if $_proxy['https'] {
$_proxy = $::apt::_proxy
if $_proxy['host'] {
if $_proxy['https'] {
- $_proxy_env = ["http_proxy=http://${
_proxy['host']}:${_proxy['port']}", "https_proxy=https://${_proxy['host']}:${
_proxy['port']}"]
+ $_proxy_env = ["http_proxy=http://${
$_proxy['host']}:${$_proxy['port']}", "https_proxy=https://${$_proxy['host']}:${$
_proxy['port']}"]
} else {
} else {
- $_proxy_env = ["http_proxy=http://${
_proxy['host']}:${
_proxy['port']}"]
+ $_proxy_env = ["http_proxy=http://${
$_proxy['host']}:${$
_proxy['port']}"]
}
} else {
$_proxy_env = []
}
} else {
$_proxy_env = []
@@
-45,7
+45,7
@@
define apt::ppa(
unless => "/usr/bin/test -s ${::apt::sources_list_d}/${sources_list_d_filename}",
user => 'root',
logoutput => 'on_failure',
unless => "/usr/bin/test -s ${::apt::sources_list_d}/${sources_list_d_filename}",
user => 'root',
logoutput => 'on_failure',
- notify =>
Exec['apt_
update'],
+ notify =>
Class['apt::
update'],
require => $_require,
}
require => $_require,
}
@@
-57,7
+57,7
@@
define apt::ppa(
else {
file { "${::apt::sources_list_d}/${sources_list_d_filename}":
ensure => 'absent',
else {
file { "${::apt::sources_list_d}/${sources_list_d_filename}":
ensure => 'absent',
- notify =>
Exec['apt_
update'],
+ notify =>
Class['apt::
update'],
}
}
}
}
}
}