class nagios::apache { $nagios_httpd = 'apache' include nagios case $operatingsystem { 'debian': { file { "${nagios::nagios_cfgdir}/apache2.conf": ensure => present, source => ["puppet:///site-nagios/configs/${fqdn}/apache2.conf", "puppet:///site-nagios/configs/apache2.conf", "puppet:///nagios/configs/apache2.conf"], } apache::config::global { "nagios3.conf": ensure => link, target => "${nagios::nagios_cfgdir}/apache2.conf", require => File["${nagios::nagios_cfgdir}/apache2.conf"], } } } }