summaryrefslogtreecommitdiff
path: root/manifests/defaults/templates.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/defaults/templates.pp')
-rw-r--r--manifests/defaults/templates.pp14
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..5a3d23d
--- /dev/null
+++ b/manifests/defaults/templates.pp
@@ -0,0 +1,14 @@
+class nagios::defaults::templates {
+
+ file { 'nagios_templates':
+ path => "${nagios::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;
+ }
+
+}