added template concat

This commit is contained in:
Arne Teuke
2017-07-25 16:46:00 +01:00
parent 53e7b9d0b2
commit 8a97768e4b
2 changed files with 10 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ class cd_nagios::nagios::objects::template_rules (
selrole => object_r,
aeltype => nagios_etc_t,
seluser => system_u,
content => template[$ng_templates_head_erb]
content => template[$ng_templates_head_erb],
notify => Service[$ng_service],
}

View File

@@ -1,4 +1,12 @@
<% if @ng_template_object == 'contact' -%>
define <%= @ng_template_object %>{
name <%= @ng_template_object_name %>;
}
<% elsif @ng_template_object == 'host' -%>
<% elsif @ng_template_object == 'service' -%>
<% end -%>