diff options
author | Yifei Xue <xueyifei@huawei.com> | 2017-12-11 16:08:16 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2017-12-12 17:49:13 +0800 |
commit | d30fc513bbda9fb2ab8421ed795b89c25bc08f7d (patch) | |
tree | d756617467b00fc7bdfedd954022b8b28c3d2cfa /deploy/adapters/ansible/roles/pre-openstack/templates | |
parent | 5fbadc0b9b5d8726050906d0923abfe7ea5ce1c0 (diff) |
Bug fix for CentOS BM deployment
JIRA: -
In order to configure network for OSA deployment,
it's needed to install some packages, such as
bridge-utils, iputils, etc. So we configure
external network before using yum to install
packages.
Change-Id: I87864d6bdae79184aa82223f77b6ced1d0e9cf26
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/pre-openstack/templates')
-rw-r--r-- | deploy/adapters/ansible/roles/pre-openstack/templates/ifcfg-external.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/pre-openstack/templates/ifcfg-external.j2 b/deploy/adapters/ansible/roles/pre-openstack/templates/ifcfg-external.j2 new file mode 100644 index 00000000..05ad69f7 --- /dev/null +++ b/deploy/adapters/ansible/roles/pre-openstack/templates/ifcfg-external.j2 @@ -0,0 +1,8 @@ +DEVICE={{compu_sys_mappings["external"]["interface"]}} +ONBOOT=yes +BOOTPROTO=static +TYPE=Ethernet +IPADDR={{ ip_settings[inventory_hostname]["external"]["ip"] }} +GATEWAY={{ ip_settings[inventory_hostname]["external"]["gw"] }} +NETMASK=255.255.255.0 +DEFROUTE=yes |