From 8a3017299b8b78e16c91f8e0c091aee244137d46 Mon Sep 17 00:00:00 2001 From: Tapio Tallgren Date: Fri, 1 Dec 2017 13:53:29 +0200 Subject: Create CentOS networking configuration Change-Id: If8c0de44c313fdc22b1c7443b12d42769035c5b0 Signed-off-by: Tapio Tallgren --- .../roles/configure-network/templates/redhat/bridge.ifcfg.j2 | 9 +++++++++ .../configure-network/templates/redhat/interface.ifcfg.j2 | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2 create mode 100644 xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2 (limited to 'xci/playbooks/roles/configure-network/templates/redhat') diff --git a/xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2 b/xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2 new file mode 100644 index 00000000..06b5f177 --- /dev/null +++ b/xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2 @@ -0,0 +1,9 @@ +DEVICE={{ item.name }} +NM_CONTROLLED=no +IPADDR={{ item.ip }} +PREFIX={{ item.prefix }} +ONBOOT=yes +BOOTPROTO=none +TYPE=Bridge +DELAY=0 +STP=off diff --git a/xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2 b/xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2 new file mode 100644 index 00000000..b0dea0f5 --- /dev/null +++ b/xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2 @@ -0,0 +1,10 @@ +DEVICE={{ item.name }} +NM_CONTROLLED=no +ONBOOT=yes +BOOTPROTO=none +{% if item.vlan_id is defined %} +VLAN=yes +ETHERDEVICE={{ interface }} +VLAN_ID={{ item.vlan_id }} +{% endif %} +BRIDGE={{ item.bridge }} -- cgit 1.2.3-korg