Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12242292
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
View Options
diff --git a/roles/core/network/gre.sls b/roles/core/network/gre.sls
index 87b3503..77fd041 100644
--- a/roles/core/network/gre.sls
+++ b/roles/core/network/gre.sls
@@ -1,54 +1,54 @@
# -------------------------------------------------------------
# Salt — Network — GRE tunnels
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2020-09-20
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "roles/core/network/map.jinja" import gre with context %}
{% set boot_loader = namespace(gre=false) %}
# -------------------------------------------------------------
# Tunnels network configuration files
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% for tunnel in salt['node.resolve_gre_tunnels']() %}
{% set boot_loader.gre = True %}
-{{ gre.config_path }}{{ tunnel["network"] }}:
+{{ gre.config_path }}{{ tunnel["description"] }}:
file.managed:
- source: salt://roles/core/network/files/{{ gre.source_path }}
- makedirs: True
- template: jinja
- defaults: {{ tunnel }}
{% if grains['os_family'] == 'Debian' %}
- context:
interface: gre-{{ tunnel["network"] }}
{% endif %}
{% endfor %}
# -------------------------------------------------------------
# Kernel configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if boot_loader.gre %}
{% if grains['os'] == 'FreeBSD' %}
load_gre_kernel_module:
file.append:
- name: /boot/loader.conf
- text: |
if_gre_load="YES"
{% endif %}
{% if grains['os_family'] == 'Debian' %}
ip_gre:
kmod.present:
- persist: True
{% endif %}
{% endif %}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Oct 12, 08:11 (13 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3065524
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment