diff options
author | Yifei Xue <xueyifei@huawei.com> | 2018-01-27 16:48:33 +0800 |
---|---|---|
committer | Yifei Xue <xueyifei@huawei.com> | 2018-01-30 12:27:15 +0800 |
commit | e7f4a7321e549f88c461714dc0c9f24f925928e3 (patch) | |
tree | e55376eab6d5e140c0b28f0b0cc754ad693f8076 /deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml | |
parent | 7dfbe30d59e513da56fe34e3ffa44840a4c41ded (diff) |
Add tacker support in compass4nfv for Fraser
JIRA: COMPASS-577
1. Add tacker service into haproxy configuration file
2. Include tacker installation into setup-openstack.yml
Change-Id: I5a91766e034ec55af711029aac4ba9ed4a388db2
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml b/deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml new file mode 100644 index 00000000..2c1d2d87 --- /dev/null +++ b/deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml @@ -0,0 +1,33 @@ +--- + +- name: remove tacker-horizon directory + file: + path: "{{ tacker_horizon_dir }}" + state: absent + +- name: get tacker horizon (online) + git: + repo: "{{ tacker_horizon_repo }}" + dest: "{{ tacker_horizon_dir }}" + version: "{{ tacker_horizon_branch }}" + when: offline_deployment is defined and offline_deployment == "Disable" + +- name: copy installation script (offline) + get_url: + url: "http://{{ offline_repo_ip }}:{{ offline_repo_port }}/tacker-horizon.tar.gz" + dest: "/opt/" + when: offline_deployment is defined and offline_deployment == "Enable" + +- name: untar tacker-horizon tarball + command: su -s /bin/sh -c "tar xzf /opt/tacker-horizon.tar.gz -C /opt/" + when: offline_deployment is defined and offline_deployment == "Enable" + +- name: install tacker-horizon + shell: | + cd /opt/tacker-horizon/; + pip install -r requirements.txt; + sleep 30; + python setup.py install; + cp tacker_horizon/enabled/* \ + {{ tacker_horizon_enable_path }}/; + service apache2 restart |