Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/core/network/files/FreeBSD/netif_ipv4.rc b/roles/core/network/files/FreeBSD/netif_ipv4.rc
index f76b3b7..836a5d0 100644
--- a/roles/core/network/files/FreeBSD/netif_ipv4.rc
+++ b/roles/core/network/files/FreeBSD/netif_ipv4.rc
@@ -1,23 +1,23 @@
# -------------------------------------------------------------
# Network — rc configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/core/network/files/FreeBSD/netif_ipv4.rc
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
{% if dhcp_required %}
ifconfig_{{ interface }}="DHCP"
-{% else %}
+{%- else -%}
ifconfig_{{ interface }}="inet {{ ipv4_address }} netmask {{ ipv4_netmask }}"
-{% endif %}
-{% for ip in ipv4_aliases %}
+{% endif -%}
+{%- for ip in ipv4_aliases %}
ifconfig_{{ interface }}_alias{{ loop.index0 }}="inet {{ ip }} netmask 255.255.255.255"
-{% endfor %}
+{% endfor -%}
diff --git a/roles/core/network/files/FreeBSD/routing_ipv4.rc b/roles/core/network/files/FreeBSD/routing_ipv4.rc
index 4297983..97cd605 100644
--- a/roles/core/network/files/FreeBSD/routing_ipv4.rc
+++ b/roles/core/network/files/FreeBSD/routing_ipv4.rc
@@ -1,22 +1,21 @@
# -------------------------------------------------------------
# Network — rc configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/core/network/files/FreeBSD/routing_ipv4.rc
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
-
{% if ipv4_ovh_failover %}
static_routes="net1 net2"
route_net1="-net {{ ipv4_gateway }}/32 -interface {{ ipv4_interface }}"
route_net2="default {{ ipv4_gateway }}"
-{% else %}
+{%- else -%}
defaultrouter="{{ ipv4_gateway }}"
-{% endif %}
+{% endif -%}

File Metadata

Mime Type
text/x-diff
Expires
Fri, Sep 19, 03:07 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2992125
Default Alt Text
(2 KB)

Event Timeline