I recall having the same problem. In fact, here's what I have in my own
nagios module :
# Work around a puppet bug where created files are 600 root:root
file { [
'/etc/nagios/nagios_command.cfg',
'/etc/nagios/nagios_contact.cfg',
'/etc/nagios/nagios_contactgroup.cfg',
'/etc/nagios/nagios_host.cfg',
'/etc/nagios/nagios_hostdependency.cfg',
'/etc/nagios/nagios_hostgroup.cfg',
'/etc/nagios/nagios_service.cfg',
'/etc/nagios/nagios_servicegroup.cfg',
'/etc/nagios/nagios_timeperiod.cfg',
]:
ensure => present,
owner => 'root',
group => 'nagios',
mode => '0640',
before => Service['nagios'],
}
Matthias
--
Matthias Saou ██ ██
██ ██
Web:
http://matthias.saou.eu/ ██████████████
Mail/XMPP:
matt...@saou.eu ████ ██████ ████
██████████████████████
GPG: 4096R/E755CC63 ██ ██████████████ ██
8D91 7E2E F048 9C9C 46AF ██ ██ ██ ██
21A9 7A51 7B82 E755 CC63 ████ ████