blob: c25b0ec9347c7ac26f64836afa8fdb903bc2e9ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 %}
|