From aa94c10edc643747502e42bd5608cead4e48218f Mon Sep 17 00:00:00 2001 From: =?utf8?q?H=C3=A9ctor=20Or=C3=B3n=20Mart=C3=ADnez?= Date: Mon, 27 Oct 2014 13:03:01 +0100 Subject: [PATCH] roles: make use of porterbox uninstall features MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Héctor Orón Martínez --- modules/roles/manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) 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') { -- 2.39.2