diff options
author | Justin chi <chigang@huawei.com> | 2017-06-30 07:01:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-30 07:01:48 +0000 |
commit | 81ddb0a110736415cab48240935b436cd6656ac7 (patch) | |
tree | eeeb1c847bccb80ea46d39a8dd850ae21a609ccd /deploy/adapters/ansible/roles/config-deployment/files/http.yml | |
parent | f0e6a736f8cc1f98e5f067b4e433f5af594e7c48 (diff) | |
parent | 5371004738b1430e56a3e7679284a5e822255d2e (diff) |
Merge "setup ovs create network flavor"
Diffstat (limited to 'deploy/adapters/ansible/roles/config-deployment/files/http.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/config-deployment/files/http.yml | 17 |
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" |