Added an email parameter to the user object and rendering of it to the ERB template.

This commit is contained in:
Nick Chappell 2014-08-03 18:20:29 -07:00
parent 341f66433e
commit d5173611f4
2 changed files with 5 additions and 3 deletions

View file

@ -12,8 +12,8 @@
define icinga2::object::user (
$object_username = $name,
$display_name = $name,
$email = undef,
#Parameters to add:
# email
# pager
# vars
# groups

View file

@ -11,7 +11,6 @@
*/
//Parameters to add:
// email
// pager
// vars
// groups
@ -29,4 +28,7 @@ object User "<%= @object_username %>" {
<%- if @display_name -%>
display_name "<%= @display_name -%>"
<%- end -%>
}
<%- if @email -%>
email "<%= @email -%>"
<%- end -%>
}