Added a period parameter to the user object and rendering of it to the ERB template.
This commit is contained in:
parent
92e7a4f5e7
commit
086a300b1f
2 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -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 -%>
|
||||
}
|
Loading…
Reference in a new issue