From a8640bef228bc135895e42980b095fe51c8641b4 Mon Sep 17 00:00:00 2001 From: Nick Chappell Date: Thu, 10 Jul 2014 21:04:51 -0700 Subject: [PATCH] Added an array for a groups parameter and a hash for a vars parameter. --- manifests/objects/host.pp | 6 ++++-- templates/object_host.conf.erb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/manifests/objects/host.pp b/manifests/objects/host.pp index 5ec5e68..e677ba8 100644 --- a/manifests/objects/host.pp +++ b/manifests/objects/host.pp @@ -8,11 +8,13 @@ # define icinga2::objects::host ( - $ipv4_address = $ipaddress_eth0, - $ipv6_address = $ipaddress_eth0, $object_hostname = $name, $display_name = $fqdn, + $ipv4_address = $ipaddress_eth0, + $ipv6_address = $ipaddress_eth0, $template_to_import = 'generic-host', + $groups = [], + $vars = {}, $target_dir = '/etc/icinga2/conf.d', $target_file_name = "${fqdn}.conf", $target_file_owner = 'root', diff --git a/templates/object_host.conf.erb b/templates/object_host.conf.erb index 3eb9ee5..bdf1590 100644 --- a/templates/object_host.conf.erb +++ b/templates/object_host.conf.erb @@ -7,7 +7,7 @@ * A host definition. You can create your own configuration files * in the conf.d directory (e.g. one per host). By default all *.conf * files in this directory are included. - * + * */ //Parameters to include: