From 95efcf44650b9222ba17661eb001ac1c94362a44 Mon Sep 17 00:00:00 2001 From: Yifei Xue Date: Thu, 30 Jun 2016 03:13:29 +0800 Subject: Update tacker related packages JIRA: COMPASS-423 Change-Id: I3efa0868c0147cc43b1df096ae89a6bdc42f4204 Signed-off-by: Yifei Xue --- .../roles/tacker/tasks/tacker_controller.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'deploy/adapters/ansible/roles/tacker/tasks') diff --git a/deploy/adapters/ansible/roles/tacker/tasks/tacker_controller.yml b/deploy/adapters/ansible/roles/tacker/tasks/tacker_controller.yml index 7bdc32e5..52cc3f3e 100755 --- a/deploy/adapters/ansible/roles/tacker/tasks/tacker_controller.yml +++ b/deploy/adapters/ansible/roles/tacker/tasks/tacker_controller.yml @@ -82,15 +82,19 @@ --internalurl 'http://{{ internal_vip.ip }}:8888/' tacker when: inventory_hostname == haproxy_hosts.keys()[0] +- name: install pip packages + shell: > + pip install tosca-parser heat-translator; + - name: install tacker shell: > - . /opt/admin-openrc.sh; pip install tosca-parser; cd {{ tacker_home }}; python setup.py install + . /opt/admin-openrc.sh; cd {{ tacker_home }}; python setup.py install -# - name: create 'tacker' directory in '/var/cache', set ownership and permissions -# shell: > -# sudo mkdir /var/cache/tacker +- name: create 'tacker' directory in '/var/cache', set ownership and permissions + shell: > + mkdir -p /var/cache/tacker # sudo chown :root /var/cache/tacker -# sudo chmod 700 /var/cache/tacker +# chmod 700 /var/cache/tacker - name: create 'tacker' directory in '/var/log' shell: mkdir -p /var/log/tacker @@ -102,9 +106,10 @@ - name: edit tacker configuration file shell: crudini --merge /usr/local/etc/tacker/tacker.conf < /opt/os_templates/tacker.j2 -#- name: populate tacker database -# shell: > -# . /opt/admin-openrc.sh; /usr/local/bin/tacker-db-manage --config-file /usr/local/etc/tacker/tacker.conf upgrade head +- name: populate tacker database + shell: > + . /opt/admin-openrc.sh; /usr/local/bin/tacker-db-manage --config-file /usr/local/etc/tacker/tacker.conf upgrade head + when: inventory_hostname == haproxy_hosts.keys()[0] - name: install tacker client shell: > -- cgit 1.2.3-korg