Browse Source

improving resolver search pillar var

tags/v0.1
Arnold Bechtoldt 10 years ago
parent
commit
6d8f76692b
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      network/resolver.sls
  2. +3
    -1
      pillar.example.sls

+ 1
- 1
network/resolver.sls View File

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

+ 3
- 1
pillar.example.sls View File

- name: eth2 - name: eth2
resolver: resolver:
domain: domain.local domain: domain.local
search: domain.local
search:
- domain.local
- another.local
nameservers: nameservers:
- 192.168.2.1 - 192.168.2.1
- 2002::beef - 2002::beef

Loading…
Cancel
Save