Browse Source

improving resolver search pillar var

tags/v0.1
Arnold Bechtoldt 11 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

@@ -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 View File

@@ -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

Loading…
Cancel
Save