Created
October 26, 2016 11:52
-
-
Save alex-zel/b03c0be3b7498951727c5da72fb0f005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network: | |
- address: {{ grains['ipv4'][1] }} | |
- gateway: {{ grains.['defaultgateway'] }} | |
- netmask: '255.255.255.0' | |
- dns-nameservers: | |
- 1.1.1.1 | |
- 2.2.2.2 | |
- 3.3.3.3 | |
- dns-search: | |
- some.server.1 | |
- some.server.2 | |
- some.server.3 | |
{% for inet in grains['ip4_interfaces'] if grains['ip4_interfaces'][inet] == grains['ipv4'][1] %} | |
- interface: {{ inet }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment