Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12944665
ipv6_tunnel.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ipv6_tunnel.sls
View Options
# -------------------------------------------------------------
# Salt — Network
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
,
services
with context
%}
# -------------------------------------------------------------
# 4to6 tunnel
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
salt
[
'node.has'
](
'network:ipv6_tunnel'
)
%}
network_ipv6
:
file.managed
:
-
name
:
{{
dirs.sbin
}}
/ipv6-setup-tunnel
-
source
:
salt://roles/core/network/files/ipv6-tunnels/
{{
grains
[
'id'
]
}}
.sh.jinja
-
template
:
jinja
-
mode
:
755
{%
if
services
[
'manager'
]
==
'systemd'
%}
/etc/systemd/system/ipv6-tunnel.service
:
file.managed
:
-
source
:
salt://roles/core/network/files/ipv6-tunnels/ipv6-tunnel.service
-
mode
:
755
service.running
:
-
name
:
ipv6-tunnel
-
enable
:
true
{%
endif
%}
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 17:20 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3134080
Default Alt Text
ipv6_tunnel.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment