浏览代码

improving resolver search pillar var

tags/v0.1
Arnold Bechtoldt 10 年前
父节点
当前提交
6d8f76692b
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. +1
    -1
      network/resolver.sls
  2. +3
    -1
      pillar.example.sls

+ 1
- 1
network/resolver.sls 查看文件

@@ -16,7 +16,7 @@ resolver:
domain: {{ salt['pillar.get']('network:resolver:domain') }}
{%- endif -%}
{%- if salt['pillar.get']('network:resolver:search', False) %}
search: {{ salt['pillar.get']('network:resolver:search') }}
search: {{ salt['pillar.get']('network:resolver:search')|join(' ') }}
{%- endif -%}
{%- if salt['pillar.get']('network:resolver:nameservers', False) -%}
{%- for n in salt['pillar.get']('network:resolver:nameservers') %}

+ 3
- 1
pillar.example.sls 查看文件

@@ -11,7 +11,9 @@ network:
- name: eth2
resolver:
domain: domain.local
search: domain.local
search:
- domain.local
- another.local
nameservers:
- 192.168.2.1
- 2002::beef

正在加载...
取消
保存