Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3747485
D370.id982.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D370.id982.diff
View Options
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,37 @@
+#!/bin/sh
+
+# -------------------------------------------------------------
+# IPv6 connectivity
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2016-06-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+$IFCONFIG=ifconfig
+$ROUTE=route
+
+# -------------------------------------------------------------
+# Hurricane Electric tunnel
+# nasqueron-3.tunnel.tserv10.par1.ipv6.he.net
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+$IFCONFIG sit0 up
+$IFCONFIG sit0 inet6 tunnel ::216.66.84.42
+$IFCONFIG sit1 up
+$IFCONFIG sit1 inet6 add 2001:470:1f12:896::2/64
+$ROUTE -A inet6 add ::/0 dev sit1
+
+# -------------------------------------------------------------
+# Canonical IP
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+$IFCONFIG sit1 inet6 add 2001:470:1f13:896::c0de:15:11fe/64
+
+# -------------------------------------------------------------
+# Additional IP addresses
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% for n in range (1, 20) %}
+$IFCONFIG sit1 inet6 add 2001:470:1f13:896::{{n}}/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,19 @@
+# -------------------------------------------------------------
+# Salt — Network
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# 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 : /usr/sbin/ipv6-setup-tunnel
+ - source: salt://roles/core/network/files/{{ grains['id'] }}_ipv6
+ - template: jinja
+{% endif %}
diff --git a/roles/core/rc/files/rc.local b/roles/core/rc/files/rc.local
new file mode 100644
--- /dev/null
+++ b/roles/core/rc/files/rc.local
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+# -------------------------------------------------------------
+# rc.local
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2016-06-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# IPv6
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/usr/sbin/ipv6-setup-tunnel
+
+# -------------------------------------------------------------
+# Return value
+#
+# Should be 0 on success, not 0 on failure. Current rc process
+# requires this value to be set accordingly.
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+exit 0
diff --git a/roles/core/rc/init.sls b/roles/core/rc/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/core/rc/init.sls
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------
+# Salt — RC
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2016-06-15
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# IPv6
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
+rc:
+ file.managed:
+ - name : /etc/rc.local
+ - source: salt://roles/core/rc/files/rc.local
+{% endif %}
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -7,6 +7,9 @@
# -------------------------------------------------------------
base:
+ '*':
+ - roles/core/rc
+ - roles/core/network
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 02:25 (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248529
Default Alt Text
D370.id982.diff (4 KB)
Attached To
Mode
D370: Salt configuration for IPv6 for Debian
Attached
Detach File
Event Timeline
Log In to Comment