Added a period parameter to the user object and rendering of it to the ERB template.

This commit is contained in:
Nick Chappell 2014-08-03 19:14:02 -07:00
parent 92e7a4f5e7
commit 086a300b1f
2 changed files with 4 additions and 2 deletions

View file

@ -17,8 +17,8 @@ define icinga2::object::user (
$vars = {},
$groups = [],
$enable_notifications = undef,
$period = undef,
#Parameters to add:
# period
# types
# states
$target_dir = '/etc/icinga2/conf.d',

View file

@ -11,7 +11,6 @@
*/
//Parameters to add:
// period
// types
// states
@ -41,4 +40,7 @@ object User "<%= @object_username %>" {
<%- if @enable_notifications -%>
enable_notifications = <%= @enable_notifications -%>
<%- end -%>
<%- if @period -%>
period "<%= @period -%>"
<%- end -%>
}