diff options
author | Jan Dittberner <jandd@cacert.org> | 2019-07-21 12:48:18 +0200 |
---|---|---|
committer | Jan Dittberner <jandd@cacert.org> | 2019-07-21 12:48:18 +0200 |
commit | 35771b450fcb2e03e38e8f5cb1c60602a855e5d9 (patch) | |
tree | c9382b776cfcd6c7673dfbd0e01b47419ffea381 /sitemodules/profiles/templates | |
parent | 92d30ca710296814488ce50ba48d30f557451b81 (diff) | |
download | cacert-puppet-35771b450fcb2e03e38e8f5cb1c60602a855e5d9.tar.gz cacert-puppet-35771b450fcb2e03e38e8f5cb1c60602a855e5d9.tar.xz cacert-puppet-35771b450fcb2e03e38e8f5cb1c60602a855e5d9.zip |
Do not manage constants.conf
Let icinga2 node setup handle constants.conf, add global zone
definitions to zones.conf.epp and remove explicit zone and cn parameters
to node setup on master.
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r-- | sitemodules/profiles/templates/icinga2_master/constants.conf.epp | 32 | ||||
-rw-r--r-- | sitemodules/profiles/templates/icinga2_master/zones.conf.epp | 8 |
2 files changed, 7 insertions, 33 deletions
diff --git a/sitemodules/profiles/templates/icinga2_master/constants.conf.epp b/sitemodules/profiles/templates/icinga2_master/constants.conf.epp deleted file mode 100644 index 0baa08c..0000000 --- a/sitemodules/profiles/templates/icinga2_master/constants.conf.epp +++ /dev/null @@ -1,32 +0,0 @@ -<%- | String $ticket_salt -| -%> -/** - * This file defines global constants which can be used in - * the other configuration files. - * - * This file is managed by Puppet and should not be modified manually. - */ - -/* The directory which contains the plugins from the Monitoring Plugins project. */ -const PluginDir = "/usr/lib/nagios/plugins" - -/* The directory which contains the Manubulon plugins. - * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details. - */ -const ManubulonPluginDir = "/usr/lib/nagios/plugins" - -/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for. - * Check the documentation, chapter "Plugins Contribution", for details. - */ -const PluginContribDir = "/usr/lib/nagios/plugins" - -/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`. - * This should be the common name from the API certificate. - */ -const NodeName = "<%= $facts['fqdn'] %>" - -/* Our local zone name. */ -const ZoneName = "<%= $facts['fqdn'] %>" - -/* Secret key for remote node tickets */ -const TicketSalt = "<%= $ticket_salt %>" diff --git a/sitemodules/profiles/templates/icinga2_master/zones.conf.epp b/sitemodules/profiles/templates/icinga2_master/zones.conf.epp index ac74bbe..3430fae 100644 --- a/sitemodules/profiles/templates/icinga2_master/zones.conf.epp +++ b/sitemodules/profiles/templates/icinga2_master/zones.conf.epp @@ -6,7 +6,13 @@ object Endpoint NodeName { } object Zone ZoneName { - endpoints = [ NodeName ] + endpoints = [ NodeName ] } +object Zone "global-templates" { + global = true +} +object Zone "director-global" { + global = true +} |