diff options
Diffstat (limited to 'inventory/group_vars/chaos-at-home-ups')
-rw-r--r-- | inventory/group_vars/chaos-at-home-ups/vars.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home-ups/vars.yml b/inventory/group_vars/chaos-at-home-ups/vars.yml new file mode 100644 index 00000000..3bdcd7ea --- /dev/null +++ b/inventory/group_vars/chaos-at-home-ups/vars.yml @@ -0,0 +1,12 @@ +--- +network_mgmt_zone: "{{ network_zones.mgmt }}" + +ups_name: "{{ inventory_hostname | regex_replace('^ch-ups-(.*)$', '\\1') }}" +ups_query_sources: + - "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets['ch-mon']) | ipaddr('address') }}" + - "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets['ch-equinox-ws']) | ipaddr('address') }}" + + +prometheus_scrape_endpoint: "{{ network_mgmt_zone.prefix | ipaddr(network_mgmt_zone.offsets[inventory_hostname]) | ipaddr('address') }}:9100" +prometheus_exporters_default: + - openwrt |