Sergey Kraynev 75c710ef1c Make patch_id field type 'integer'
This fiels should be integer, because it allows user clearly understand,
what exactly he should specify here. For example for patch:
https://review.fuel-infra.org/#/c/20409/ it should be number: 20409 .

Change-Id: I0e28eed0a08472ded26bbaae7c50f848b5a5bd00
2016-08-01 12:00:38 +00:00

39 lines
1.1 KiB
YAML

Namespaces:
=: org.openstack.ci_cd_pipeline_murano_app.puppet
std: io.murano
sys: io.murano.system
puppet: org.openstack.ci_cd_pipeline_murano_app.puppet
Extends: std:Application
Name: SystemConfig
Properties:
name:
Contract: $.string().notNull()
Default: 'System Config'
projectConfigUrl:
Contract: $.string().notNull()
Default: 'https://review.fuel-infra.org/open-paas/project-config'
systemConfigUrl:
Contract: $.string().notNull()
Default: 'https://review.fuel-infra.org/open-paas/system-config'
branchName:
Contract: $.string()
Default: 'stable'
patchId:
Contract: $.int()
Methods:
installOnTheNode:
Arguments:
instance:
Contract: $.class(puppet:PuppetInstance)
Body:
- $resources: new(sys:Resources)
- $template: $resources.yaml('SystemConfig.template').bind(dict(
url => $this.systemConfigUrl,
branch => $this.branchName,
patch_id => $this.patchId))
- $instance.agent.call($template, $resources)
- $instance.putHieraData({'project_config_repo' => $this.projectConfigUrl})
- $instance.installPuppetModule('reidmv/yamlfile')