]> granicus.if.org Git - icinga2/commitdiff
Fix Vagrant config.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Apr 2014 08:22:52 +0000 (10:22 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Apr 2014 09:17:06 +0000 (11:17 +0200)
Refs #5870

.vagrant-puppet/files/etc/icinga2/conf.d/passive.conf
.vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf
etc/icinga2/conf.d/users.conf

index b9c741c2f74f1070a363d5c594d9f2aa5b31ef5b..455d666cf4156c24736d49e0e1433de8efab993f 100644 (file)
@@ -4,17 +4,23 @@
  * files in this directory are included.
  */
 object Host "nsca-ng" {
-  import "generic-host",
+  import "generic-host"
 
-  display_name = "nsca-ng test",
+  display_name = "nsca-ng test"
+}
+
+apply Service "PassiveService1" {
+  import "generic-service"
+
+  check_command = "passive"
+
+  assign where host.name == "nsca-ng"
+}
+
+apply Service "PassiveService2" {
+  import "generic-service"
 
-  services["PassiveService1"] = {
-    templates = [ "generic-service" ],
-    check_command = "passive",
-  },
+  check_command = "passive"
 
-  services["PassiveService2"] = {
-    templates = [ "generic-service" ],
-    check_command = "passive",
-  },
+  assign where host.name == "nsca-ng"
 }
index 70cec39a3539404e33af6a8ab551378c792452cc..f1fe8ec89b451a6590ae04e62bdbbcb4cf0156da 100644 (file)
@@ -6,8 +6,8 @@
 library "db_ido_mysql"
 
 object IdoMysqlConnection "ido-mysql" {
-  user = "icinga",
-  password = "icinga",
-  host = "localhost",
+  user = "icinga"
+  password = "icinga"
+  host = "localhost"
   database = "icinga"
 }
index dbe676f08ce6338b17cd701c61336b6b8859f8ed..50183957d3cb720d3934e5d28b1d8315797baf1a 100644 (file)
@@ -10,14 +10,12 @@ object User "icingaadmin" {
   groups = [ "icingaadmins" ]
 
   macros = {
-    "name" = "Icinga 2 Admin"
-    "email" = "icinga@localhost"
-    "pager" = "icingaadmin@localhost.localdomain"
+    name = "Icinga 2 Admin"
+    email = "icinga@localhost"
+    pager = "icingaadmin@localhost.localdomain"
   }
 
-  custom = {
-    notes = "This is the Icinga 2 Admin account."
-  }
+  custom.notes = "This is the Icinga 2 Admin account."
 }