The network core state now will check if we want an IPv6 tunnel
in the node definition.
A follow-up change should replace the pillar.get call by a method
fetching a property for the current node.
Ref T1273
Differential D1073
Provision IPv6 tunnel configuration for Ysul dereckson on Oct 20 2017, 15:52. Authored by Tags None Referenced Files
Subscribers None
Details
The network core state now will check if we want an IPv6 tunnel A follow-up change should replace the pillar.get call by a method Ref T1273 Ysul $ salt-call --local state.apply roles/core/network local: ---------- ID: network_ipv6 Function: file.managed Name: /usr/local/sbin/ipv6-setup-tunnel Result: True Comment: File /usr/local/sbin/ipv6-setup-tunnel updated Started: 15:15:39.243453 Duration: 127.683 ms Changes: ---------- diff: New file mode: 0755 Summary for local ------------ Succeeded: 1 (changed=1) Failed: 0 ------------ Total states run: 1 Total run time: 127.683 ms $ rehash $ ipv6-setup-tunnel add net default: gateway 2001:470:1f12:9e1::1 $ salt-call --local state.apply roles/core/network local: ---------- ID: network_ipv6 Function: file.managed Name: /usr/local/sbin/ipv6-setup-tunnel Result: True Comment: File /usr/local/sbin/ipv6-setup-tunnel is in the correct state Started: 15:34:03.843976 Duration: 122.35 ms Changes: Summary for local ------------ Succeeded: 1 Failed: 0 ------------ Total states run: 1 Total run time: 122.350 ms orin.dereckson.drake $ ping -6 ysul.nasqueron.org PING ysul.nasqueron.org(ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1)) 56 data bytes 64 bytes from ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1): icmp_seq=1 ttl=62 time=26.3 ms 64 bytes from ysul.nasqueron.org (2001:470:1f13:9e1:0:c0ff:ee:1): icmp_seq=2 ttl=62 time=25.2 ms If the IPv6 option isn't set or set at False The state is correctly ignored. Ysul $ salt-call --local state.apply roles/core/network local: Summary for local ----------- Succeeded: 0 Failed: 0 ----------- Total states run: 0 Total run time: 0.000 ms
Diff Detail
|