projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7128b23
)
roles: make use of porterbox uninstall features
author
Héctor Orón Martínez
<zumbi@debian.org>
Mon, 27 Oct 2014 12:03:01 +0000
(13:03 +0100)
committer
Héctor Orón Martínez
<zumbi@debian.org>
Mon, 27 Oct 2014 12:03:01 +0000
(13:03 +0100)
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
modules/roles/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/roles/manifests/init.pp
b/modules/roles/manifests/init.pp
index
eed52fe
..
063a748
100644
(file)
--- a/
modules/roles/manifests/init.pp
+++ b/
modules/roles/manifests/init.pp
@@
-31,6
+31,14
@@
class roles {
# XXX: turn this into a real role
if getfromhash($site::nodeinfo, 'porterbox') {
include porterbox
+ class {'porterbox':
+ ensure => present,
+ }
+ } else {
+ include porterbox
+ class {'porterbox':
+ ensure => absent,
+ }
}
if has_role('bugs_mirror') {