瀏覽代碼

Forgot to save zones.conf.jinja, now it has last changes

master
Ricardo Hernandez 8 年之前
父節點
當前提交
3eb444d4e5
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      icinga2/templates/zones.conf.jinja

+ 5
- 5
icinga2/templates/zones.conf.jinja 查看文件

@@ -1,14 +1,14 @@
{%- from 'icinga2/map.jinja' import icinga2 with context %}
{%- set fqdn = salt.grains.get('fqdn') -%}

{% if fqdn != icinga2.master_minion_id -%}
object Endpoint "{{icinga2.master_minion_id}}" {
host = "{{icinga2.master_minion_id}}"
{% if fqdn != icinga2.master_fqdn -%}
object Endpoint "{{icinga2.master_fqdn}}" {
host = "{{icinga2.master_fqdn}}"
port = "5665"
}

object Zone "master" {
endpoints = [ "{{icinga2.master_minion_id}}" ]
endpoints = [ "{{icinga2.master_fqdn}}" ]
}
{%- endif %}

@@ -17,7 +17,7 @@ object Endpoint NodeName {

object Zone ZoneName {
endpoints = [ NodeName ]
{% if fqdn != icinga2.master_minion_id -%}
{% if fqdn != icinga2.master_fqdn -%}
parent = "master"
{%- endif %}
}

Loading…
取消
儲存