Explorar el Código

improving resolver search pillar var

tags/v0.1
Arnold Bechtoldt hace 10 años
padre
commit
6d8f76692b
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. +1
    -1
      network/resolver.sls
  2. +3
    -1
      pillar.example.sls

+ 1
- 1
network/resolver.sls Ver fichero

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

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

Cargando…
Cancelar
Guardar