Added an email parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
341f66433e
commit
d5173611f4
2 changed files with 5 additions and 3 deletions
|
@ -12,8 +12,8 @@
|
||||||
define icinga2::object::user (
|
define icinga2::object::user (
|
||||||
$object_username = $name,
|
$object_username = $name,
|
||||||
$display_name = $name,
|
$display_name = $name,
|
||||||
|
$email = undef,
|
||||||
#Parameters to add:
|
#Parameters to add:
|
||||||
# email
|
|
||||||
# pager
|
# pager
|
||||||
# vars
|
# vars
|
||||||
# groups
|
# groups
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//Parameters to add:
|
//Parameters to add:
|
||||||
// email
|
|
||||||
// pager
|
// pager
|
||||||
// vars
|
// vars
|
||||||
// groups
|
// groups
|
||||||
|
@ -29,4 +28,7 @@ object User "<%= @object_username %>" {
|
||||||
<%- if @display_name -%>
|
<%- if @display_name -%>
|
||||||
display_name "<%= @display_name -%>"
|
display_name "<%= @display_name -%>"
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- if @email -%>
|
||||||
|
email "<%= @email -%>"
|
||||||
|
<%- end -%>
|
||||||
}
|
}
|
Loading…
Reference in a new issue