Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/core/network/files/eglide_ipv6 b/roles/core/network/files/eglide_ipv6
new file mode 100644
index 0000000..99cbaba
--- /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=/sbin/ifconfig
+$ROUTE=/sbin/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
index 0000000..f003148
--- /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
index 0000000..374f22a
--- /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
index 0000000..b67125b
--- /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
index e742c97..8d900b0 100644
--- a/top.sls
+++ b/top.sls
@@ -1,12 +1,15 @@
# -------------------------------------------------------------
# Salt configuration for Nasqueron servers
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
base:
+ '*':
+ - roles/core/rc
+ - roles/core/network
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 17:02 (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260618
Default Alt Text
(4 KB)

Event Timeline