2014-08-03 07:01:15 +02:00
|
|
|
/**
|
|
|
|
* 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 -%>"
|
2014-08-03 07:07:23 +02:00
|
|
|
<%- end -%>
|
2014-08-03 07:28:34 +02:00
|
|
|
<%- if @display_name -%>
|
|
|
|
display_name "<%= @display_name -%>"
|
|
|
|
<%- end -%>
|
2014-08-04 03:20:29 +02:00
|
|
|
<%- if @email -%>
|
|
|
|
email "<%= @email -%>"
|
|
|
|
<%- end -%>
|
2014-08-04 03:23:28 +02:00
|
|
|
<%- if @pager -%>
|
|
|
|
pager "<%= @pager -%>"
|
|
|
|
<%- end -%>
|
2014-08-04 03:24:26 +02:00
|
|
|
<%- if @vars.empty? != true -%>
|
|
|
|
<%- @vars.each_pair do |key, value| -%>
|
|
|
|
vars.<%= key %> = "<%= value %>"
|
|
|
|
<%- end -%>
|
|
|
|
<%- end -%>
|
2014-08-04 03:26:36 +02:00
|
|
|
<%- if @groups.length != 0 -%>
|
|
|
|
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
|
|
|
|
<%- end -%>
|
2014-08-04 03:27:46 +02:00
|
|
|
<%- if @enable_notifications -%>
|
|
|
|
enable_notifications = <%= @enable_notifications -%>
|
|
|
|
<%- end -%>
|
2014-08-04 04:14:02 +02:00
|
|
|
<%- if @period -%>
|
2014-08-22 05:36:18 +02:00
|
|
|
period = "<%= @period -%>"
|
2014-08-04 04:14:02 +02:00
|
|
|
<%- end -%>
|
2014-08-04 04:15:57 +02:00
|
|
|
<%- if @types.length != 0 -%>
|
|
|
|
types = [ <%- @types.each do |type| -%> <%= type %>, <%- end -%>]
|
|
|
|
<%- end -%>
|
2014-08-04 04:16:58 +02:00
|
|
|
<%- if @states.length != 0 -%>
|
|
|
|
states = [ <%- @states.each do |state| -%> <%= state %>, <%- end -%>]
|
|
|
|
<%- end -%>
|
2014-08-04 03:20:29 +02:00
|
|
|
}
|