1 2 3 4 5 6 7
class site_nagios::server::purge { exec {'purge_conf.d': command => '/bin/rm -rf /etc/nagios3/conf.d/*', onlyif => 'test -e /etc/nagios3/conf.d' } }