Split deploy method on 2 methods

* deploy method is now splitted on 2 methods:
   deployInstance and deployApplication.
 * Put the package CiCdUtils in the right place so the
   script prepare_packages.sh builds it before building
   Jenkins/Gerrit/LDAP/Zuul/Nodepool

Change-Id: Ia5367cfa74bb07f42e56bc64a7e1bbac1f0702ae
This commit is contained in:
Nikolay Mahotkin 2016-06-06 11:35:53 +03:00
parent aa93d3305a
commit 7899a6d42b
3 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,22 @@
Namespaces:
=: org.openstack.ci_cd_pipeline_murano_app.utils
res: io.murano.resources
std: io.murano
sys: io.murano.system
Name: CombinableApplication
Methods:
deploy:
Body:
- $instance: $.deployInstance()
- $.deployApplication($instance)
# This method should be overriden in child classes.
deployInstance:
# This method should be overriden in child classes.
deployApplication:
Arguments:
- instance:
Contract: $.class(res:Instance).notNull()

View File

@ -9,6 +9,6 @@ Author: 'Mirantis, Inc'
Tags: [CI, Utils]
Classes:
org.openstack.ci_cd_pipeline_murano_app.utils.net.Hosts: net/Hosts.yaml
org.openstack.ci_cd_pipeline_murano_app.utils.CombinableApplication: CombinableApplication.yaml
Require:
org.openstack.ci_cd_pipeline_murano_app.puppet.Puppet:

View File

@ -13,7 +13,7 @@ function check_dir () {
fi
}
default_packages="Puppet SystemConfig OpenLDAP Gerrit Jenkins Zuul Nodepool CiCdEnvironment CiCdUtils"
default_packages="Puppet SystemConfig CiCdUtils OpenLDAP Gerrit Jenkins Zuul Nodepool CiCdEnvironment"
source_dir="murano-apps"
destination_dir="."
refresh_existing_packages=false