From: Héctor Orón Martínez Date: Mon, 27 Oct 2014 12:03:01 +0000 (+0100) Subject: roles: make use of porterbox uninstall features X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=aa94c10edc643747502e42bd5608cead4e48218f roles: make use of porterbox uninstall features Signed-off-by: Héctor Orón Martínez --- diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index eed52fe8..063a748e 100644 --- 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') {