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/config-compute/tasks/RedHat.yml | |
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/config-compute/tasks/RedHat.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml b/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml index 3ec1659f..ff91393d 100644 --- a/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml +++ b/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml @@ -14,20 +14,19 @@ shell: "echo 'nfs 2049/tcp' >> /etc/services; \ echo 'nfs 2049/udp' >> /etc/services" -# yamllint disable rule:line-length - name: generate ifcfg-if.tenant template: src: ifcfg-if.tenant - dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["tenant"]["interface"]}}.{{compu_sys_mappings["tenant"]["vlan_tag"]}} + dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_tenant }} - name: generate ifcfg-if.storage template: src: ifcfg-if.storage - dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["storage"]["interface"]}}.{{compu_sys_mappings["storage"]["vlan_tag"]}} + dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_storage }} - name: add br-external to interface script lineinfile: - dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["external"]["interface"]}} + dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_external }} line: "BRIDGE=br-external" - name: remove eth0 ip addresss @@ -49,14 +48,13 @@ - name: add br-vlan to interface script lineinfile: - dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["storage"]["interface"]}}.{{compu_sys_mappings["storage"]["vlan_tag"]}} + dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_storage }} line: "BRIDGE=br-storage" - name: add br-tenant to interface script lineinfile: - dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["tenant"]["interface"]}}.{{compu_sys_mappings["tenant"]["vlan_tag"]}} + dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_tenant }} line: "BRIDGE=br-tenant" -# yamllint enable rule:line-length - name: generate ifcfg-br-mgmt script template: |