Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3765726
D2566.id6482.diff
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
D2566.id6482.diff
View Options
diff --git a/pillar/nodes/nodes.sls b/pillar/nodes/nodes.sls
--- a/pillar/nodes/nodes.sls
+++ b/pillar/nodes/nodes.sls
@@ -44,6 +44,12 @@
ipv4_address: 51.255.124.11
ipv4_gateway: 91.121.86.254
+ private_interface:
+ uuid: 8e8ca793-b2eb-46d8-9266-125aba6d06c4
+ device: ens224
+ address: 172.27.27.4
+ netmask: 255.255.255.0
+
ipv6_tunnel: True
docker-001:
@@ -55,6 +61,12 @@
ipv4_address: 51.255.124.9
ipv4_gateway: 91.121.86.254
+ private_interface:
+ uuid: 3fd0b9f8-ecc3-400d-bc61-3ba21d0b6337
+ device: ens224
+ address: 172.27.27.6
+ netmask: 255.255.255.0
+
ipv6_tunnel: False
router-001:
diff --git a/roles/core/network/files/RedHat/ifcfg-private b/roles/core/network/files/RedHat/ifcfg-private
new file mode 100644
--- /dev/null
+++ b/roles/core/network/files/RedHat/ifcfg-private
@@ -0,0 +1,32 @@
+# -------------------------------------------------------------
+# Network configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/core/network/files/RedHat/ifcfg-private
+# -------------------------------------------------------------
+#
+# <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>
+
+TYPE=Ethernet
+PROXY_METHOD=none
+BROWSER_ONLY=no
+BOOTPROTO=none
+DEFROUTE=yes
+IPV4_FAILURE_FATAL=no
+IPV6INIT=yes
+IPV6_AUTOCONF=yes
+IPV6_DEFROUTE=yes
+IPV6_FAILURE_FATAL=no
+IPV6_ADDR_GEN_MODE=stable-privacy
+NAME={{ interface.device }}
+UUID={{ interface.uuid }}
+DEVICE={{ interface.device }}
+ONBOOT=yes
+PREFIX=24
+IPADDR={{ interface.address }}
diff --git a/roles/core/network/ipv4.sls b/roles/core/network/ipv4.sls
--- a/roles/core/network/ipv4.sls
+++ b/roles/core/network/ipv4.sls
@@ -26,6 +26,18 @@
dhcp_required: {{ salt['node.has']('network:dhcp_required') }}
{% endif %}
+{% if grains['os_family'] == 'RedHat' %}
+{% if "private_interface" in network %}
+{% set interface = network['private_interface'] %}
+/etc/sysconfig/network-scripts/ifcfg-{{ interface['device'] }}:
+ file.managed:
+ - source: salt://roles/core/network/files/RedHat/ifcfg-private
+ - template: jinja
+ - context:
+ interface: {{ interface }}
+{% endif %}
+{% endif %}
+
# -------------------------------------------------------------
# Routes
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 13:58 (18 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258167
Default Alt Text
D2566.id6482.diff (2 KB)
Attached To
Mode
D2566: Configure IntraNought interface for RedHat servers
Attached
Detach File
Event Timeline
Log In to Comment