Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3770057
ipv4.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
ipv4.sls
View Options
# -------------------------------------------------------------
# Salt — Network
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2016-06-15
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
set
network
=
salt
[
'node.get'
](
'network'
)
%}
# -------------------------------------------------------------
# Interface
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
'os'
]
==
'FreeBSD'
%}
/etc/rc.conf.d/netif/ipv4_
{{
network
[
'ipv4_interface'
]
}}
:
file.managed
:
-
source
:
salt://roles/core/network/files/FreeBSD/netif_ipv4.rc
-
makedirs
:
True
-
template
:
jinja
-
context
:
interface
:
{{
network
[
'ipv4_interface'
]
}}
ipv4_address
:
{{
network
[
'ipv4_address'
]
}}
ipv4_netmask
:
{{
network
[
'ipv4_netmask'
]
|
default
(
'255.255.255.0'
)
}}
ipv4_aliases
:
{{
salt
[
'node.get_list'
](
'network:ipv4_aliases'
)
}}
{%
endif
%}
# -------------------------------------------------------------
# Routes
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
'os'
]
==
'FreeBSD'
%}
/etc/rc.conf.d/routing/ipv4
:
file.managed
:
-
source
:
salt://roles/core/network/files/FreeBSD/routing_ipv4.rc
-
makedirs
:
True
-
template
:
jinja
-
context
:
ipv4_gateway
:
{{
network
[
'ipv4_gateway'
]
}}
ipv4_interface
:
{{
network
[
'ipv4_interface'
]
}}
ipv4_ovh_failover
:
{{
salt
[
'node.has'
](
'network:ipv4_ovh_failover'
)
}}
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 18:55 (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260766
Default Alt Text
ipv4.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment