added template concat
This commit is contained in:
@@ -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],
|
||||
}
|
||||
|
||||
|
||||
@@ -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 -%>
|
||||
|
||||
Reference in New Issue
Block a user