Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3938608
map.jinja
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
map.jinja
View Options
# -------------------------------------------------------------
# Salt — Network
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Interface configuration by OS/distro
#
# config_path: the configuration file to write in OS
# source_path: in this repo, roles/core/network/files/<source_path>
#
# Don't set default value, so we MUST define them
# for EACH os/distro.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
set
interface_config
=
salt
[
'grains.filter_by'
]({
'FreeBSD'
:
{
"config_path"
:
"/etc/rc.conf.d/netif/ipv4_"
,
"source_path"
:
"FreeBSD/netif_ipv4.rc"
,
"suffix"
:
"interface"
,
},
'RedHat'
:
{
"config_path"
:
"/etc/sysconfig/network-scripts/ifcfg-"
,
"source_path"
:
"RedHat/ifcfg"
,
"suffix"
:
"device"
,
},
'Debian'
:
{
"config_path"
:
"/etc/network/interfaces.d/10-net-"
,
"source_path"
:
"Debian/10-net.jinja"
,
"suffix"
:
"device"
,
},
})
%}
# -------------------------------------------------------------
# GRE tunnels configuration by OS/distro
#
# See interface configuration for the documentation.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
set
gre
=
salt
[
'grains.filter_by'
]({
'FreeBSD'
:
{
"config_path"
:
"/etc/rc.conf.d/netif/gre_"
,
"source_path"
:
"FreeBSD/netif_gre.rc"
,
},
'Debian'
:
{
"config_path"
:
"/etc/network/interfaces.d/10-gre-"
,
"source_path"
:
"Debian/10-gre.jinja"
,
},
})
%}
# -------------------------------------------------------------
# Routes configuration by OS/distro
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
set
routes_config
=
salt
[
'grains.filter_by'
]({
'FreeBSD'
:
{
"config_path"
:
"/etc/rc.conf.d/routing/managed"
,
"source_path"
:
"FreeBSD/routing_ipv4.rc"
,
"provider"
:
"os"
},
'RedHat'
:
{
"config_path"
:
"/etc/routes.conf"
,
"source_path"
:
"Linux/routes.conf"
,
"provider"
:
"custom-service"
}
},
default
=
"RedHat"
)
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 03:39 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2293106
Default Alt Text
map.jinja (2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment