summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-osa
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-12-07 17:08:26 +0800
committerYifei Xue <xueyifei@huawei.com>2017-12-08 09:01:58 +0800
commit3fa627b6048c4aa17b4cf3d641a4ea60465c7cef (patch)
treed1b8aee4968dafbc07bc96ddf5abd8093bbb2a86 /deploy/adapters/ansible/roles/post-osa
parent51ce441ca60cd115d9e8a932203ccc9d3cebcf82 (diff)
Add CentOS 7.4 support for OpenStack Pike
JIRA: COMPASS-565 After this patch merged, compass can deploy OpenStack Pike on CentOS 7.4. Due to some upstream bugs, we add some fixes in this patch, e.g. add libvirt to os-cinder, remove a useless repo after installing Change-Id: Ibc1e6f1ed103daf2d70a8ae1d7c04f77d1545c41 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa')
-rw-r--r--deploy/adapters/ansible/roles/post-osa/tasks/RedHat.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/tasks/RedHat.yml b/deploy/adapters/ansible/roles/post-osa/tasks/RedHat.yml
index ecfd0680..287fd515 100644
--- a/deploy/adapters/ansible/roles/post-osa/tasks/RedHat.yml
+++ b/deploy/adapters/ansible/roles/post-osa/tasks/RedHat.yml
@@ -14,6 +14,12 @@
dest: /etc/sysconfig/network-scripts/ifcfg-eth0
line: "IPADDR={{ ip_settings[inventory_hostname][\"mgmt\"][\"ip\"] }}"
+- name: remove br-mgmt in ifcfg-eth0
+ lineinfile:
+ dest: /etc/sysconfig/network-scripts/ifcfg-eth0
+ regexp: "^BRIDGE=br-mgmt"
+ state: absent
+
- name: add eth0 netmask
lineinfile:
dest: /etc/sysconfig/network-scripts/ifcfg-eth0