Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
52ca73e
)
Added some crazy bash madness to check if the ppa is installed already. Otherwise...
author
Robert Navarro
<rnavarro@phiivo.com>
Thu, 18 Aug 2011 05:37:54 +0000
(
02:37
-0300)
committer
Robert Navarro
<rnavarro@phiivo.com>
Thu, 18 Aug 2011 05:37:54 +0000
(
02:37
-0300)
manifests/ppa.pp
patch
|
blob
|
history
diff --git
a/manifests/ppa.pp
b/manifests/ppa.pp
index 8dcea856ede5c7e64580714137cfae50b86638fe..157692745f4faff2b6a8d91804f4d609eaebeed0 100644
(file)
--- a/
manifests/ppa.pp
+++ b/
manifests/ppa.pp
@@
-4,6
+4,10
@@
define apt::ppa() {
Class['apt'] -> Apt::Ppa[$title]
+ Exec {
+ onlyif => "/usr/bin/test ! $(/bin/ls /etc/apt/sources.list.d | /bin/grep -v $(echo \"${title}\" | /usr/bin/gawk 'match(\$0, /^ppa:(.*)\/(.*)$/, vals) {printf \"%s-%s\", vals[1], vals[2]}'))",
+ }
+
exec { "apt-update-${name}":
command => "/usr/bin/aptitude update",
refreshonly => true,