Merge pull request #5320 from Icinga/feature/global-zones

zones.conf: Add global-templates & director-global by default

fixes #5106
This commit is contained in:
Michael Friedrich 2017-06-02 10:56:26 +02:00 committed by GitHub
commit 28481430d4
2 changed files with 30 additions and 6 deletions

View File

@ -542,6 +542,8 @@ the `zones.conf` file in your preferred editor. Add the following lines if not e
global = true global = true
} }
Note: Packages >= 2.7 provide this configuration by default.
You don't need any local configuration on the client except for You don't need any local configuration on the client except for
CheckCommand definitions which can be synced using the global zone CheckCommand definitions which can be synced using the global zone
above. Therefore disable the inclusion of the `conf.d` directory above. Therefore disable the inclusion of the `conf.d` directory
@ -669,6 +671,8 @@ for syncing check commands later:
global = true global = true
} }
Note: Packages >= 2.7 provide this configuration by default.
You don't need any local configuration on the client except for You don't need any local configuration on the client except for
CheckCommand definitions which can be synced using the global zone CheckCommand definitions which can be synced using the global zone
above. Therefore disable the inclusion of the `conf.d` directory above. Therefore disable the inclusion of the `conf.d` directory
@ -1059,6 +1063,8 @@ for syncing check commands later:
global = true global = true
} }
Note: Packages >= 2.7 provide this configuration by default.
You don't need any local configuration on the client except for You don't need any local configuration on the client except for
CheckCommand definitions which can be synced using the global zone CheckCommand definitions which can be synced using the global zone
above. Therefore disable the inclusion of the `conf.d` directory above. Therefore disable the inclusion of the `conf.d` directory
@ -1227,6 +1233,8 @@ file.
global = true global = true
} }
Note: Packages >= 2.7 provide this configuration by default.
Put existing CheckCommand definitions into `/etc/icinga2/zones.d/global-templates/commands.conf`. Put existing CheckCommand definitions into `/etc/icinga2/zones.d/global-templates/commands.conf`.
[root@icinga2-master1.localdomain /]# mkdir -p /etc/icinga2/zones.d/global-templates [root@icinga2-master1.localdomain /]# mkdir -p /etc/icinga2/zones.d/global-templates
@ -1923,6 +1931,8 @@ the global configuration files:
global = true global = true
} }
Note: Packages >= 2.7 provide this configuration by default.
Similar to the zone configuration sync you'll need to create a new directory in Similar to the zone configuration sync you'll need to create a new directory in
`/etc/icinga2/zones.d`: `/etc/icinga2/zones.d`:
@ -2551,6 +2561,8 @@ Add an additional global zone. Please note the `>>` append mode.
} }
EOF EOF
Note: Packages >= 2.7 provide this configuration by default.
If this client node is configured as [remote command endpoint execution](6-distributed-monitoring.md#distributed-monitoring-top-down-command-endpoint) If this client node is configured as [remote command endpoint execution](6-distributed-monitoring.md#distributed-monitoring-top-down-command-endpoint)
you can safely disable the `checker` feature. The `node setup` CLI command already disabled the `notification` feature. you can safely disable the `checker` feature. The `node setup` CLI command already disabled the `notification` feature.

View File

@ -13,17 +13,29 @@ object Zone ZoneName {
} }
/* /*
* Defines a global zone containing templates, * Defines a global zone for distributed setups with masters,
* etc. synced to all nodes, if they accept * satellites and clients.
* configuration. All remote nodes need * This is required to sync configuration commands,
* this zone configured too. * templates, apply rules, etc. to satellite and clients.
* All nodes require the same configuration and must
* have `accept_config` enabled in the `api` feature.
*/ */
/*
object Zone "global-templates" { object Zone "global-templates" {
global = true global = true
} }
*/
/*
* Defines a global zone for the Icinga Director.
* This is required to sync configuration commands,
* templates, apply rules, etc. to satellite and clients.
* All nodes require the same configuration and must
* have `accept_config` enabled in the `api` feature.
*/
object Zone "director-global" {
global = true
}
/* /*
* Read the documentation on how to configure * Read the documentation on how to configure