has_public_ipv6: False
{%- endif %}
+location:
+{%- if salt['grains.get']('fqdn') == 'ns3.uhu-banane.de' %}
+ provider: gridscale
+{%- elif salt['grains.get']('fqdn') in ('liz.nexunus.net', ) %}
+ provider: hetzner
+{%- else %}
+ provider: profitbricks
+{%- endif %}
+{%- if salt['grains.get']('fqdn') == 'ns2.uhu-banane.de' %}
+ country: us
+{%- else %}
+ country: de
+{%- endif %}
+{%- if salt['grains.get']('fqdn') == 'ns2.uhu-banane.de' %}
+ dc: pb-las
+{%- elif salt['grains.get']('fqdn') == 'ns1.uhu-banane.de' %}
+ dc: pb-fra
+{%- else %}
+ dc: unknown
+{%- endif %}
--- /dev/null
+{%- if salt['grains.get']('fqdn') in ('liz.nexunus.net', ) -%}
+ {%- set has_public_ipv6 = True -%}
+{%- else -%}
+ {%- set has_public_ipv6 = False -%}
+{%- endif -%}
+
+resolver:
+ default-nameserver:
+ - 8.8.8.8
+ - 8.8.4.4
+{%- if has_public_ipv6 %}
+ - 2001:4860:4860::8888
+{%- endif %}
+ domain: nexunus.net
+ nameserver:
+{%- if salt['grains.get']('fqdn') == 'liz.nexunus.net' %}
+ - 127.0.0.1
+{%- else %}
+ - 172.31.0.1
+{%- if has_public_ipv6 %}
+ - 2a01:4f8:171:3006:1000::1
+{%- endif %}
+{%- endif %}
+ - 185.48.118.128
+ - 185.102.95.107
+{%- if has_public_ipv6 %}
+ - 2a06:2380:0:1::3a
+{%- endif %}
+ search:
+ - nexunus.net
+ - nexunus.de
+ - nexunus.com
+