aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-deployment/files/http.yml
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2017-06-27 19:49:07 +0800
committerwutianwei <wutianwei1@huawei.com>2017-06-30 12:10:05 +0800
commit5371004738b1430e56a3e7679284a5e822255d2e (patch)
tree036ee67714b08a7cc62e35deda0ef66a889ec6a0 /deploy/adapters/ansible/roles/config-deployment/files/http.yml
parent7107ed60659e23863ffcd227600bf741489f24d8 (diff)
setup ovs create network flavor
1. replace the linuxbridge with openvswitch 2. create the network and flavors 3. fix the haproxy when public endpoint using http Change-Id: I6fe93d0c4d5305e5dcab8d2e6c628eb5fa23ab56 Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-deployment/files/http.yml')
-rw-r--r--deploy/adapters/ansible/roles/config-deployment/files/http.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-deployment/files/http.yml b/deploy/adapters/ansible/roles/config-deployment/files/http.yml
new file mode 100644
index 00000000..248fc06d
--- /dev/null
+++ b/deploy/adapters/ansible/roles/config-deployment/files/http.yml
@@ -0,0 +1,17 @@
+---
+- name: change https to http in haproxy configuratio
+ hosts: network_hosts
+ gather_facts: "{{ gather_facts | default(True) }}"
+ max_fail_percentage: 20
+ user: root
+ tasks:
+ - name: change the haproxy configuration
+ shell: "sed -i 's/ssl crt.*//g' /etc/haproxy/haproxy.cfg;
+ sed -i 's/https$/http/g' /etc/haproxy/haproxy.cfg"
+ when: openstack_service_publicuri_proto == "http"
+
+ - name: restart haproxy service
+ service:
+ name: haproxy
+ state: restarted
+ when: openstack_service_publicuri_proto == "http"