aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml
diff options
context:
space:
mode:
authorHU Xinhui <xinhui_hu@foxmail.com>2017-12-07 09:35:59 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-07 09:35:59 +0000
commit60cbb92e00c848851997913aa26aa23c445e71ff (patch)
tree13e45b7c6203d15b3895d2a638809c8fa5cfcba6 /deploy/adapters/ansible/roles/post-osa/tasks/tacker_horizon.yml
parent872449f45d4b5d15beb557f7b53571bb92cf7326 (diff)
parentcc4d6db7534c509797aa363acc3c27f8c8cfecca (diff)
Merge "Enable tacker horizon" into stable/euphrates
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.yml33
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