浏览代码

icinga2: Store primary node role in configuration

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 1 年之前
父节点
当前提交
9619087f37
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 }}",