633e4faef9
refs#7715: https://dev.icinga.org/issues/7715
48 строки
Без EOL
1,4 КиБ
Text
48 строки
Без EOL
1,4 КиБ
Text
/**
|
|
* WARNING: This host definition is automatically generated by Puppet.
|
|
* ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
|
|
*/
|
|
|
|
/**
|
|
* A user definition. You can create your own configuration files
|
|
* in the conf.d directory (e.g. one per host). By default all *.conf
|
|
* files in this directory are included.
|
|
*
|
|
*/
|
|
|
|
object User "<%= @object_username %>" {
|
|
<%#- If any of the @ parameters are undefined, don't print anything for them: -%>
|
|
<%- if @template_to_import -%>
|
|
<%#- Otherwise, include the parameter: -%>
|
|
import "<%= @template_to_import -%>"
|
|
<%- end -%>
|
|
<%- if @display_name -%>
|
|
display_name = "<%= @display_name -%>"
|
|
<%- end -%>
|
|
<%- if @email -%>
|
|
email = "<%= @email -%>"
|
|
<%- end -%>
|
|
<%- if @pager -%>
|
|
pager = "<%= @pager -%>"
|
|
<%- end -%>
|
|
<%- if @enable_notifications -%>
|
|
enable_notifications = <%= @enable_notifications %>
|
|
<%- end %>
|
|
<%- if @vars.empty? != true -%>
|
|
<%- @vars.each_pair do |key, value| -%>
|
|
vars.<%= key %> = "<%= value %>"
|
|
<%- end -%>
|
|
<%- end -%>
|
|
<%- if @groups.length != 0 -%>
|
|
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
|
|
<%- end -%>
|
|
<%- if @period -%>
|
|
period = "<%= @period -%>"
|
|
<%- end -%>
|
|
<%- if @types.length != 0 -%>
|
|
types = [ <%- @types.each do |type| -%> <%= type %>, <%- end -%>]
|
|
<%- end -%>
|
|
<%- if @states.length != 0 -%>
|
|
states = [ <%- @states.each do |state| -%> <%= state %>, <%- end -%>]
|
|
<%- end -%>
|
|
} |