On Debian, network could be managed putting files
in /etc/network/interfaces.d.
Ubuntu follows also this system.
Resolves T768.
Differential D370
Salt configuration for IPv6 for Debian Authored by Sandlayth on May 10 2016, 07:19. Tags Referenced Files
Details
On Debian, network could be managed putting files Ubuntu follows also this system. Resolves T768. Run on the master: salt eglide state.sls roles/core/network/init
Diff Detail
Event Timeline
Comment Actions upstream Configuration is blocked by https://github.com/saltstack/salt/issues/28114 We so have two choices:
Comment Actions
Comment Actions $ salt eglide state.highstate eglide: ---------- ID: network_ipv6 Function: file.managed Name: /etc/network/interfaces.d/ipv6 Result: False Comment: Parent directory not present Started: 02:06:29.738768 Duration: 523.4 ms Changes: ---------- We should add makedirs : True per https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed Comment Actions Switch to pure legacy mode using commands and ifconfig. Tunnel doesn't work using this block: $ ip tunnel add he-ipv6 mode sit remote 216.66.84.42 local 212.47.244.42 ttl 255 $ ip link set he-ipv6 up $ ip addr add 2001:470:1f12:896::2/64 dev he-ipv6 $ ip route add ::/0 dev he-ipv6 $ ip -f inet6 addr But it works when we use ifconfig. So, instead to let Debian configure Then, rc.local is edited to run this script. Comment Actions Test run results: eglide:
----------
ID: rc
Function: file.managed
Name: /etc/rc.local
Result: True
Comment: File /etc/rc.local updated
Started: 12:26:51.352035
Duration: 757.121 ms
Changes:
----------
diff:
---
+++
@@ -1,14 +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
#
-# rc.local
-#
-# This script is executed at the end of each multiuser runlevel.
-# Make sure that the script will "exit 0" on success or any other
-# value on error.
-#
-# In order to enable or disable this script just change the execution
-# bits.
-#
-# By default this script does nothing.
+# Should be 0 on success, not 0 on failure. Current rc process
+# requires this value to be set accordingly.
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
exit 0
----------
ID: network_ipv6
Function: file.managed
Name: /usr/sbin/ipv6-setup-tunnel
Result: True
Comment: File /usr/sbin/ipv6-setup-tunnel updated
Started: 12:26:52.110362
Duration: 738.835 ms
Changes:
----------
diff:
New file
mode:
0644
----------
| ||||||||||||||||||||||||||||||||||||||||||||||||||