put memcached installation first 51/3951/2
authorcarey.xu <carey.xuhan@huawei.com>
Fri, 4 Dec 2015 01:52:09 +0000 (09:52 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Fri, 4 Dec 2015 05:16:03 +0000 (13:16 +0800)
JIRA: COMPASS-178

Change-Id: I1b85ff33f6cd73875c2c10f526948a84b3350660
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/adapters/ansible/roles/common/tasks/main.yml
deploy/adapters/ansible/roles/common/vars/Debian.yml
deploy/adapters/ansible/roles/common/vars/RedHat.yml
deploy/adapters/ansible/roles/common/vars/main.yml
deploy/adapters/ansible/roles/dashboard/vars/RedHat.yml
deploy/adapters/ansible/roles/dashboard/vars/main.yml
deploy/adapters/ansible/roles/keystone/templates/admin-openrc.sh

index 3097d09..d4247ce 100644 (file)
     echo "# compass" >> /etc/hosts
     echo {{ COMPASS_SERVER.stdout_lines[0] }} {{ name.stdout_lines[0] }} >> /etc/hosts
 
-- name: first update pkgs
-  shell: "{{ ansible_pkg_mgr }}  update"
-
 - name: install packages
-  action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest"
+  action: "{{ ansible_pkg_mgr }} name={{ item }} state=latest update_cache=yes"
   with_items: packages | union(packages_noarch)
 
 - name: make config template dir exist
@@ -44,9 +41,6 @@
 - name: update ntp conf
   template: src=ntp.conf dest=/etc/ntp.conf backup=yes
 
-- name: stop ntp
-  service: name={{ ntp_service }} state=stopped enabled=yes
-
 - name: use ntpdate once for initial sync time
   shell: ntpdate {{ ntp_server }}
   ignore_errors: True
@@ -55,9 +49,6 @@
   shell: hwclock --systohc
   ignore_errors: True
 
-- name: restart ntp
-  service: name={{ ntp_service }} state=restarted enabled=yes
-
-- name: restart openvswitch
+- name: restart services
   service: name={{ item }} state=restarted enabled=yes
-  with_items: services
+  with_items: services| union(services_noarch)
index 8dce272..5b159da 100644 (file)
@@ -5,11 +5,13 @@ packages:
   - openvswitch-datapath-dkms
   - openvswitch-switch
   - crudini
+  - python-memcache
 
 pip_packages: []
 
 pip_conf: pip.conf
 
-services: []
+services:
+  - ntp
+
 
-ntp_service: ntp
index 6618748..e1f179a 100644 (file)
@@ -1,6 +1,7 @@
 ---
 packages:
   - openvswitch
+  - python-memcached
 
 pip_packages:
   - crudini
@@ -9,5 +10,4 @@ pip_conf: pip.conf
 
 services:
   - openvswitch
-
-ntp_service: ntpd
+  - ntpd
index 2c5b567..e3dfa49 100644 (file)
@@ -2,5 +2,7 @@
 packages_noarch:
   - python-pip
   - ntp
+  - memcached
 
-services_noarch: []
+services_noarch:
+  - memcached
index 39843a3..fe9d522 100644 (file)
@@ -1,7 +1,5 @@
 ---
 packages_noarch:
-  - memcached
   - openstack-dashboard
 
-services_noarch:
-  - memcached
+services_noarch: []
index 544fe31..f54f425 100644 (file)
@@ -3,4 +3,5 @@ export OS_PASSWORD={{ ADMIN_PASS }}
 export OS_TENANT_NAME=admin
 export OS_AUTH_URL=http://{{ internal_vip.ip }}:35357/v2.0
 export OS_USERNAME=ADMIN
+export OS_VOLUME_API_VERSION=2