Added a vars parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
89b3e25e9a
commit
f9193d14f7
2 changed files with 6 additions and 2 deletions
|
@ -14,8 +14,8 @@ define icinga2::object::user (
|
|||
$display_name = $name,
|
||||
$email = undef,
|
||||
$pager = undef,
|
||||
$vars = {},
|
||||
#Parameters to add:
|
||||
# vars
|
||||
# groups
|
||||
# enable_notifications
|
||||
# period
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
//Parameters to add:
|
||||
// vars
|
||||
// groups
|
||||
// enable_notifications
|
||||
// period
|
||||
|
@ -33,4 +32,9 @@ object User "<%= @object_username %>" {
|
|||
<%- if @pager -%>
|
||||
pager "<%= @pager -%>"
|
||||
<%- end -%>
|
||||
<%- if @vars.empty? != true -%>
|
||||
<%- @vars.each_pair do |key, value| -%>
|
||||
vars.<%= key %> = "<%= value %>"
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
}
|
Loading…
Reference in a new issue