Added a groups parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
f9193d14f7
commit
7b5f7a994f
2 changed files with 4 additions and 2 deletions
|
@ -15,8 +15,8 @@ define icinga2::object::user (
|
|||
$email = undef,
|
||||
$pager = undef,
|
||||
$vars = {},
|
||||
$groups = [],
|
||||
#Parameters to add:
|
||||
# groups
|
||||
# enable_notifications
|
||||
# period
|
||||
# types
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
//Parameters to add:
|
||||
// groups
|
||||
// enable_notifications
|
||||
// period
|
||||
// types
|
||||
|
@ -37,4 +36,7 @@ object User "<%= @object_username %>" {
|
|||
vars.<%= key %> = "<%= value %>"
|
||||
<%- end -%>
|
||||
<%- end -%>
|
||||
<%- if @groups.length != 0 -%>
|
||||
groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
|
||||
<%- end -%>
|
||||
}
|
Loading…
Reference in a new issue