From 8503b6c31989c1b290f3c81953410415265965d1 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 19 Mar 2018 07:41:50 -0700 Subject: Move configuration network templates The jinja templates that are used for networking setup are based on the openstack-ansible needs, those needs can differ for another installers. This change propose to make the network configuration depending on the installer. Signed-off-by: Victor Morales Change-Id: Ie805c3c7716393377d4dfcb32ed794cc1039d515 --- .../bootstrap-host/templates/osa/redhat/interface.ifcfg.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 xci/playbooks/roles/bootstrap-host/templates/osa/redhat/interface.ifcfg.j2 (limited to 'xci/playbooks/roles/bootstrap-host/templates/osa/redhat/interface.ifcfg.j2') diff --git a/xci/playbooks/roles/bootstrap-host/templates/osa/redhat/interface.ifcfg.j2 b/xci/playbooks/roles/bootstrap-host/templates/osa/redhat/interface.ifcfg.j2 new file mode 100644 index 00000000..a97ad0cf --- /dev/null +++ b/xci/playbooks/roles/bootstrap-host/templates/osa/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={{ ansible_default_ipv4.interface }} +VLAN_ID={{ item.vlan_id }} +{% endif %} +BRIDGE={{ item.bridge }} -- cgit 1.2.3-korg