summaryrefslogtreecommitdiff
path: root/inventory/group_vars/ele-ups/vars.yml
blob: 6146bc37d9cc726700488c79a0827d16054636f3 (plain) (blame)
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
---
ssh_users_root:
  - equinox
  - datacop

network_mgmt_zone: "{{ network_zones.mgmt }}"

ups_name: "{{ inventory_hostname | regex_replace('^ele-ups-(.*)$', '\\1') }}"
ups_query_sources:
  - "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets['ele-calypso']) | ansible.utils.ipaddr('address') }}"

ups_ntp_servers:
  - '{{ network_zones.mgmt.prefix | ansible.utils.ipaddr(network_zones.mgmt.offsets["ele-router-hmtsaal"]) | ansible.utils.ipaddr("address") }}'
  - '{{ network_zones.mgmt.prefix | ansible.utils.ipaddr(network_zones.mgmt.offsets["ele-router-orpheum"]) | ansible.utils.ipaddr("address") }}'


prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:9100"
prometheus_exporters_default:
  - openwrt

prometheus_job_multitarget_nut__ups:
  ele-calypso:
  - instance: "ups-{{ ups_name }}"
    ups: "{{ ups_name }}"
    server: "{{ network_mgmt_zone.prefix | ansible.utils.ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}"