From e337514133fb15ab54be67ef688958b7e39ea7d6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 5 Jan 2014 15:10:33 +0100 Subject: [PATCH] try has_role --- modules/roles/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index e603cff60..a3a294ae8 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -8,7 +8,7 @@ class roles { include munin::master } - if getfromhash($site::nodeinfo, 'nagiosmaster') { + if has_role('nagiosmaster') { # include nagios::server ssl::service { 'nagios.debian.org': notify => Service['apache2'], -- 2.20.1