puppet: Move contacts.cfg to be a template.

This commit is contained in:
Tim Abbott 2017-10-05 19:08:50 -07:00
parent 09aec3e467
commit 6017d3dec5
2 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ class zulip_ops::nagios {
notify => Service["nagios3"],
}
file { "/etc/nagios3/conf.d/contacts.cfg":
require => Package[nagios3],
owner => "root",
group => "root",
mode => 644,
content => template("zulip_ops/nagios3/contacts.cfg.template.erb"),
notify => Service["nagios3"],
}
file { "/etc/nagios3/conf.d/hosts.cfg":
require => Package[nagios3],
owner => "root",