Pārlūkot izejas kodu

icinga2: Store primary node role in configuration

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 gadu atpakaļ
vecāks
revīzija
9619087f37
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      icinga2/host.conf.tmpl

+ 1 - 0
icinga2/host.conf.tmpl

@@ -37,6 +37,7 @@ object Host "{{ node_id }}" {
 
 	vars.os = "Linux"
 
+	vars.role = "{{ node_config.get('role', '') }}"
 	vars.roles = [
 {%- for role in roles %}
 		"{{ role }}",