Page MenuHomeDevCentral

D370.id975.diff
No OneTemporary

D370.id975.diff

diff --git a/roles/core/network/files/eglide_ipv6 b/roles/core/network/files/eglide_ipv6
new file mode 100644
--- /dev/null
+++ b/roles/core/network/files/eglide_ipv6
@@ -0,0 +1,14 @@
+auto he-ipv6
+iface he-ipv6 inet6 v4tunnel
+ address 2001:470:1f12:896::2
+ netmask 64
+ endpoint 216.66.84.42
+ local 212.47.244.42
+ ttl 255
+ gateway 2001:470:1f12:896::1
+
+{% for n in range(1,20) %}
+iface he-ipv6 inet6 v4tunnel
+ address 2001:470:1f13:896::{{n}}
+ netmask 64
+{% endfor %}
diff --git a/roles/core/network/init.sls b/roles/core/network/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/network/init.sls
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------
+# Salt — Network
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2016-06-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# IPv6
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
+network_ipv6:
+ file.managed:
+ - name : /etc/network/interfaces.d/ipv6
+ - source: salt://roles/core/network/files/{{ grains['id'] }}_ipv6
+{% endif %}
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -7,6 +7,8 @@
# -------------------------------------------------------------
base:
+ '*':
+ - roles/core/network
'eglide':
- roles/shellserver/userland-software
- roles/shellserver/users

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 02:46 (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248587
Default Alt Text
D370.id975.diff (1 KB)

Event Timeline