diff options
author | Victor Morales <victor.morales@intel.com> | 2018-03-19 07:41:50 -0700 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2018-04-06 04:03:02 -0700 |
commit | 8503b6c31989c1b290f3c81953410415265965d1 (patch) | |
tree | 6295d6e66deb2edae2f52c149a5ec42c830668a6 /xci/playbooks/roles/bootstrap-host/templates/osa/redhat | |
parent | a2cf6b44936886ff3cc142907552b016e8f5d42e (diff) |
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 <victor.morales@intel.com>
Change-Id: Ie805c3c7716393377d4dfcb32ed794cc1039d515
Diffstat (limited to 'xci/playbooks/roles/bootstrap-host/templates/osa/redhat')
-rw-r--r-- | xci/playbooks/roles/bootstrap-host/templates/osa/redhat/bridge.ifcfg.j2 | 9 | ||||
-rw-r--r-- | xci/playbooks/roles/bootstrap-host/templates/osa/redhat/interface.ifcfg.j2 | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/xci/playbooks/roles/bootstrap-host/templates/osa/redhat/bridge.ifcfg.j2 b/xci/playbooks/roles/bootstrap-host/templates/osa/redhat/bridge.ifcfg.j2 new file mode 100644 index 00000000..06b5f177 --- /dev/null +++ b/xci/playbooks/roles/bootstrap-host/templates/osa/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/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 }} |