Merge "Import the Murano applications libary as part of setup"

This commit is contained in:
Zuul 2017-11-01 09:45:52 +00:00 committed by Gerrit Code Review
commit 822283b6ba

View File

@ -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"