Browse Source

Merge pull request #42 from mceloud/master

fix options setting in resolv
tags/2016.12
Aleš Komárek 8 years ago
parent
commit
a7ccff36da
2 changed files with 7 additions and 1 deletions
  1. +4
    -0
      README.rst
  2. +3
    -1
      linux/files/resolv.conf

+ 4
- 0
README.rst View File

@@ -545,6 +545,10 @@ Setup resolv.conf, nameservers, domain and search domains
search:
- my.example.com
- example.com
options:
- ndots:5
- timeout:2
- attempts:2

Linux storage pillars
---------------------

+ 3
- 1
linux/files/resolv.conf View File

@@ -10,5 +10,7 @@ domain {{ network.resolv.domain }}
nameserver {{ nameserver }}
{%- endfor %}
{%- if network.resolv.get('options', False) %}
options {{ options|sort|join(' ') }}
{%- for option in network.resolv.options %}
options {{ option }}
{%- endfor %}
{%- endif %}

Loading…
Cancel
Save