Browse Source

icinga2: Store primary node role in configuration

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 year ago
parent
commit
9619087f37
1 changed files with 1 additions and 0 deletions
  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 }}",