diff options
| author | ckonstanski <kostcarl@isu.edu> | 2026-07-30 18:17:14 -0600 |
|---|---|---|
| committer | ckonstanski <kostcarl@isu.edu> | 2026-07-30 18:17:14 -0600 |
| commit | 640ff61422bc0ee3966941b93d9889ddbbd38d77 (patch) | |
| tree | abf1c08f5d38ee53ec8b29dc4f425722517505e6 /src/caas/services/jinja/icinga_host_vars.j2 | |
| parent | 22dae02a86c1fce71091bfa5289cf99abba1b217 (diff) | |
Diffstat (limited to 'src/caas/services/jinja/icinga_host_vars.j2')
| -rw-r--r-- | src/caas/services/jinja/icinga_host_vars.j2 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/caas/services/jinja/icinga_host_vars.j2 b/src/caas/services/jinja/icinga_host_vars.j2 new file mode 100644 index 0000000..c25b0ec --- /dev/null +++ b/src/caas/services/jinja/icinga_host_vars.j2 @@ -0,0 +1,38 @@ +--- +icinga_routers: +{% for router in icinga_routers %} + - name: "{{ router.name }}" + address6: "{{ router.address6 }}" + group: "icingaadmins" +{% endfor %} + +icinga_bmcs: +{% for bmc in icinga_bmcs %} + - name: "{{ bmc.name }}" + address6: "{{ bmc.address6 }}" + group: "icingaadmins" +{% if bmc.preauth %} + preauth: True +{% endif %} +{% if bmc.bmc_password_admin_default is not none %} + bmc_username_admin_default: "Administrator" + bmc_password_admin_default: "{{ bmc.bmc_password_admin_default }}" +{% endif %} +{% if bmc.bmc_password_admin is not none %} + bmc_username_admin: "Administrator" + bmc_password_admin: "{{ bmc.bmc_password_admin }}" +{% endif %} +{% if bmc.bmc_username is not none and bmc.bmc_password is not none %} + bmc_username: "{{ bmc.bmc_username }}" + bmc_password: "{{ bmc.bmc_password }}" +{% endif %} +{% if bmc.middleware_endpoint is not none %} + middleware_endpoint: "{{ bmc.middleware_endpoint }}" +{% endif %} +{% if bmc.middleware_username is not none %} + middleware_username: "{{ bmc.middleware_username }}" +{% endif %} +{% if bmc.middleware_password is not none %} + middleware_password: "{{ bmc.middleware_password }}" +{% endif %} +{% endfor %} |
