]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
roles: make use of porterbox uninstall features
authorHéctor Orón Martínez <zumbi@debian.org>
Mon, 27 Oct 2014 12:03:01 +0000 (13:03 +0100)
committerHé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

index eed52fe8ab04117422c718d5c7ad8355ffdde5ba..063a748e4954aa1f02540037839fce8aac96f6f1 100644 (file)
@@ -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') {