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

  file { 'nagios_templates':
    path => "${nagios::defaults::vars::int_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;
  }
}