summaryrefslogtreecommitdiff
path: root/manifests/defaults/templates.pp
blob: c97eee4e58a0684ec3094f58258357c7f5ca1c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class nagios::defaults::templates {
    include nagios::defaults::vars

    file { 'nagios_templates':
            path => "${nagios::defaults::vars::int_nagios_cfgdir}/conf.d/nagios_templates.cfg",
            source => [ "puppet:///modules/site-nagios/configs/${fqdn}/nagios_templates.cfg",
                        "puppet:///modules/site-nagios/configs/${operatingsystem}/nagios_templates.cfg",
                        "puppet:///modules/site-nagios/configs/nagios_templates.cfg",
                        "puppet:///modules/nagios/configs/${operatingsystem}/nagios_templates.cfg",
                        "puppet:///modules/nagios/configs/nagios_templates.cfg" ],
            notify => Service['nagios'],
            mode => 0644, owner => root, group => root;
    }

}