Commit 9244acd1 authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'ansible-add-corr-slots' into 'master'

Add correlator backup and slots

See merge request !4766
parents e6d4ec66 dbf90060
Pipeline #29294 passed with stages
in 28 minutes and 11 seconds
......@@ -42,6 +42,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -42,6 +42,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -43,6 +43,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -42,6 +42,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -42,6 +42,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -42,6 +42,7 @@ all:
correlator_loglevel: info
correlator_max_threads: 10
correlator_power: 1
correlator_backup_power: 1
datastream_loglevel: info
datastream_power: 2
datastream_mode: wait
......
......@@ -14,6 +14,12 @@ forms:
type: int
max: 1
min: 0
backup_power:
default: 1
label: "Additional Instances"
type: int
max: 16
min: 0
loglevel:
default: info
label: Loglevel
......
......@@ -42,3 +42,17 @@
with_items: "{{ hostvars |json_query('*.noc_services[] | [].pool') |unique }}"
tags:
- classifier
- name: call consul to setup correlator
run_once: "True"
include_role:
name: consul
tasks_from: service_config_update
vars:
consul_service_key: "noc/slots/correlator-{{ item }}/manifest"
consul_service_internal_key: "Limit"
consul_service_value: "{{ hostvars |json_query(\"*.noc_services[] | [?name=='correlator'].{n:pool,num:config.power} | [?n=='\"+item+\"'] | sum([].num)\") }}" # noqa 204
consul_service_token: None
with_items: "{{ hostvars |json_query('*.noc_services[] | [].pool') |unique }}"
tags:
- correlator
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment