summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/openstack_mitaka_xenial/roles
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-07-21 20:39:26 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-07-21 21:57:58 -0400
commite342b6a5da6a8602e19721e30d3e0a2c44041e19 (patch)
tree31600ce2fb3c5a62972324bd363497124efce6ad /deploy/adapters/ansible/openstack_mitaka_xenial/roles
parentc15131e20fbdd9abc469a11dd5f817a7ff1f8be6 (diff)
Add moon in Compass
JIRA: COMPASS-443 Change-Id: Ief63570287d81664442f79b775067a5747e948fc Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka_xenial/roles')
-rw-r--r--deploy/adapters/ansible/openstack_mitaka_xenial/roles/moon/tasks/keystone-moon-install.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/moon/tasks/keystone-moon-install.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/moon/tasks/keystone-moon-install.yml
index 71315f82..a9b98c1a 100644
--- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/moon/tasks/keystone-moon-install.yml
+++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/moon/tasks/keystone-moon-install.yml
@@ -2,8 +2,13 @@
# Note (asteroide): this part is specific but when Keystone-Moon packages will be installed in a true repository
# we will not have to do that.
+
+- name: get image http server
+ shell: awk -F'=' '/compass_server/ {print $2}' /etc/compass.conf
+ register: http_server
+
- name: download keystone-moon packages
- get_url: url=https://github.com/dthom/moon-bin/archive/master.zip dest=/tmp/master.zip mode=0444
+ get_url: url="http://{{ http_server.stdout_lines[0] }}/packages/moon/master.zip" dest=/tmp/master.zip mode=0444
- name: extract keystone-moon packages
unarchive: src=/tmp/master.zip dest=/tmp copy=no