diff options
author | Yifei Xue <xueyifei@huawei.com> | 2016-06-30 03:13:29 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2016-07-01 19:26:23 +0800 |
commit | 95efcf44650b9222ba17661eb001ac1c94362a44 (patch) | |
tree | dc58e13b5f40e14c0625496c7af65481164c7564 /deploy/adapters/ansible/roles/tacker/tasks | |
parent | 153489c149ba055923e72237a1907acdd4b64b24 (diff) |
Update tacker related packages
JIRA: COMPASS-423
Change-Id: I3efa0868c0147cc43b1df096ae89a6bdc42f4204
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/tacker/tasks')
-rwxr-xr-x | deploy/adapters/ansible/roles/tacker/tasks/tacker_controller.yml | 21 |
1 files changed, 13 insertions, 8 deletions
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 <LOGIN_USER>: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: > |