diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 18:23:56 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 18:23:56 -0500 |
commit | aa87ce0c5bbf39fa3ac370960c2eec7c81b23cd3 (patch) | |
tree | b8363c246bafb5ac15a0d1550331789ed21dca26 /manifests/defaults/templates.pp | |
parent | fdaba117fb5b58adb73ba20046dada3cf9247161 (diff) |
move nagios templates in a file resource as puppet doesn't support them using native types, see issue #1180
Diffstat (limited to 'manifests/defaults/templates.pp')
-rw-r--r-- | manifests/defaults/templates.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/defaults/templates.pp b/manifests/defaults/templates.pp new file mode 100644 index 0000000..752ba60 --- /dev/null +++ b/manifests/defaults/templates.pp @@ -0,0 +1,14 @@ +class nagios::defaults::templates { + + file { 'nagios_templates': + path => "${nagios_cfgdir}/conf.d/nagios_templates.cfg", + source => [ "puppet://$server/modules/site-nagios/configs/${fqdn}/nagios_templates.cfg", + "puppet://$server/modules/site-nagios/configs/${operatingsystem}/nagios_templates.cfg", + "puppet://$server/modules/site-nagios/configs/nagios_templates.cfg", + "puppet://$server/modules/nagios/configs/${operatingsystem}/nagios_templates.cfg", + "puppet://$server/modules/nagios/configs/nagios_templates.cfg" ], + notify => Service['nagios'], + mode => 0644, owner => root, group => root; + } + +} |