Sfoglia il codice sorgente

improving resolver search pillar var

tags/v0.1
Arnold Bechtoldt 10 anni fa
parent
commit
6d8f76692b
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +1
    -1
      network/resolver.sls
  2. +3
    -1
      pillar.example.sls

+ 1
- 1
network/resolver.sls Vedi 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 Vedi 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…
Annulla
Salva