Created
December 19, 2016 13:12
-
-
Save briner/4453a3e644a942347549f2afe9f469ff 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
{% set ipv6_enabled = False %} | |
{% for ip in grains["ipv6"] %} | |
{% if ip[:12] in ["fd69:620:600", "2001:620:600"] %} | |
{% set ipv6_enabled = True %} | |
{% endif %} | |
{% endfor %} | |
/etc/salt/minion.d/central-it_master.conf: | |
file.managed: | |
{% if ipv6_enabled %} | |
- source: salt://minion/files/central-it_master.conf.ipv6 | |
{% else %} | |
- source: salt://minion/files/central-it_master.conf.ipv4 | |
{% endif %} | |
- user: root | |
- group: root | |
- mode: 644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment