From: Peter Palfrader Date: Sun, 5 Jan 2014 14:10:33 +0000 (+0100) Subject: try has_role X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e337514133fb15ab54be67ef688958b7e39ea7d6;p=mirror%2Fdsa-puppet.git try has_role --- 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'],