From 427373387c63d36380a424b79bac8227bc945b9b Mon Sep 17 00:00:00 2001 From: James McCarthy Date: Fri, 20 Oct 2017 08:32:49 +0100 Subject: [PATCH] Import the Murano applications libary as part of setup This applications package is useful to have in place, import io.murano.applications along with the core package. Change-Id: I819eebe2deae2d1ff0375a2dd39a33f50817bb83 --- ansible/roles/murano/tasks/start.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ansible/roles/murano/tasks/start.yml b/ansible/roles/murano/tasks/start.yml index 4aa92557e7..45c2455ae8 100644 --- a/ansible/roles/murano/tasks/start.yml +++ b/ansible/roles/murano/tasks/start.yml @@ -65,3 +65,17 @@ delegate_to: "{{ groups['murano-api'][0] }}" when: - status.stdout.find("io.murano") == -1 or action == "upgrade" + +- name: Importing Murano applications library package + command: > + docker exec murano_api murano + --os-username {{ openstack_auth.username }} + --os-password {{ keystone_admin_password }} + --os-project-name {{ openstack_auth.project_name }} + --os-auth-url {{ keystone_admin_url }} + --murano-url {{ admin_protocol }}://{{ api_interface_address }}:{{ murano_api_port }} + package-import --exists-action u --is-public /io.murano.applications.zip + run_once: True + delegate_to: "{{ groups['murano-api'][0] }}" + when: + - status.stdout.find("io.murano.applications") == -1 or action == "upgrade"