Fix some xenial baremetal deploy bugs 69/24969/2
authorliyuenan <liyuenan@huawei.com>
Mon, 28 Nov 2016 05:20:23 +0000 (13:20 +0800)
committerliyuenan <liyuenan@huawei.com>
Mon, 28 Nov 2016 06:12:44 +0000 (14:12 +0800)
1. Fix pip upgrade

2. Fix apache conf file

JIRA: COMPASS-489

Change-Id: I2d45114b559298898ab354f884ced74fc9fc7abf
Signed-off-by: liyuenan <liyuenan@huawei.com>
deploy/adapters/ansible/openstack_mitaka_xenial/roles/dashboard/templates/openstack-dashboard.conf.j2
deploy/adapters/ansible/openstack_mitaka_xenial/roles/keystone/templates/wsgi-keystone.conf.j2
deploy/adapters/ansible/openstack_newton_xenial/roles/ceilometer_controller/templates/wsgi-ceilometer.conf.j2
deploy/adapters/ansible/openstack_newton_xenial/roles/dashboard/templates/openstack-dashboard.conf.j2
deploy/adapters/ansible/openstack_newton_xenial/roles/keystone/templates/wsgi-keystone.conf.j2
deploy/adapters/ansible/roles/common/tasks/main.yml

index 89a7068..664af68 100755 (executable)
@@ -1,6 +1,6 @@
 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
 {% if work_threads > 10 %}
-    set work_threads = 10
+{%  set work_threads = 10 %}
 {% endif %}
 
 <VirtualHost {{ internal_ip }}:80>
index f5f9d33..55c8983 100644 (file)
@@ -1,6 +1,6 @@
 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
 {% if work_threads > 10 %}
-    set work_threads = 10
+{%  set work_threads = 10 %}
 {% endif %}
 
 <VirtualHost {{ internal_ip }}:5000>
index 89a7068..664af68 100755 (executable)
@@ -1,6 +1,6 @@
 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
 {% if work_threads > 10 %}
-    set work_threads = 10
+{%  set work_threads = 10 %}
 {% endif %}
 
 <VirtualHost {{ internal_ip }}:80>
index f5f9d33..55c8983 100644 (file)
@@ -1,6 +1,6 @@
 {% set work_threads = (ansible_processor_vcpus + 1) // 2 %}
 {% if work_threads > 10 %}
-    set work_threads = 10
+{%  set work_threads = 10 %}
 {% endif %}
 
 <VirtualHost {{ internal_ip }}:5000>
index 8da5603..1fa0de8 100644 (file)
 - name: make config template dir exist
   file: path=/opt/os_templates state=directory mode=0755
 
-- name: upgrade pip
-  pip: name=pip state=latest
-
 - name: create pip config directory
   file: path=~/.pip state=directory
 
 - name: update pip.conf
   template: src=pip.conf dest=~/.pip/{{ pip_conf }}
 
+- name: upgrade pip
+  pip: name=pip state=latest
+
 - name: install pip packages
   pip: name={{ item }} state=present extra_args='--pre'
   with_items: pip_packages