Fix indentation warnings CI/CD
After patch Ia2498bdb0f7c310ec3d2c2f11f5d3fc08c8b352c there is possible to run check for yaml and shell syntax. This patch is oriented to fix some similar Warnings reported in yaml syntax check for CI/CD apps, like "(indentation)". Change-Id: Ie2d854e6feef6362ea07d6132e71072dae49b5d7
This commit is contained in:
parent
9288270ca0
commit
5e046b2169
@ -38,22 +38,22 @@ Methods:
|
||||
Return:
|
||||
|
||||
- $securityGroupIngress:
|
||||
- ToPort: 80
|
||||
FromPort: 80
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 443
|
||||
FromPort: 443
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 8081
|
||||
FromPort: 8081
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 29418
|
||||
FromPort: 29418
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 80
|
||||
FromPort: 80
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 443
|
||||
FromPort: 443
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 8081
|
||||
FromPort: 8081
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
- ToPort: 29418
|
||||
FromPort: 29418
|
||||
IpProtocol: tcp
|
||||
External: true
|
||||
|
||||
- $._environment.securityGroupManager.addGroupIngress($securityGroupIngress)
|
||||
- $._environment.reporter.report($this, 'Creating VM for Gerrit "{0}"'.format($.instance.name))
|
||||
|
@ -8,7 +8,7 @@ Description: |
|
||||
Author: 'Mirantis, Inc'
|
||||
Tags: [Server, Java, CI, Jenkins]
|
||||
Classes:
|
||||
org.openstack.ci_cd_pipeline_murano_app.Jenkins: Jenkins.yaml
|
||||
org.openstack.ci_cd_pipeline_murano_app.Jenkins: Jenkins.yaml
|
||||
UI: ui.yaml
|
||||
Logo: logo.png
|
||||
Require:
|
||||
|
@ -10,7 +10,7 @@ Description: |
|
||||
Author: 'Mirantis, Inc'
|
||||
Tags: [Images, CI, Zuul, Jenkins]
|
||||
Classes:
|
||||
org.openstack.ci_cd_pipeline_murano_app.Nodepool: Nodepool.yaml
|
||||
org.openstack.ci_cd_pipeline_murano_app.Nodepool: Nodepool.yaml
|
||||
UI: ui.yaml
|
||||
Logo: logo.png
|
||||
Require:
|
||||
|
@ -8,7 +8,7 @@ Description: |
|
||||
Author: 'Mirantis, Inc'
|
||||
Tags: [Server, LDAP]
|
||||
Classes:
|
||||
org.openstack.ci_cd_pipeline_murano_app.OpenLDAP: OpenLDAP.yaml
|
||||
org.openstack.ci_cd_pipeline_murano_app.OpenLDAP: OpenLDAP.yaml
|
||||
UI: ui.yaml
|
||||
Logo: logo.png
|
||||
Require:
|
||||
|
@ -11,7 +11,7 @@
|
||||
# under the License.
|
||||
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
|
||||
Name: Hiera
|
||||
|
||||
|
@ -11,9 +11,9 @@
|
||||
# under the License.
|
||||
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
conf: io.murano.configuration
|
||||
sys: io.murano.system
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
conf: io.murano.configuration
|
||||
sys: io.murano.system
|
||||
|
||||
Name: PuppetClient
|
||||
|
||||
|
@ -11,10 +11,10 @@
|
||||
# under the License.
|
||||
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
res: io.murano.resources
|
||||
std: io.murano
|
||||
sys: io.murano.system
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
res: io.murano.resources
|
||||
std: io.murano
|
||||
sys: io.murano.system
|
||||
|
||||
Name: PuppetInstance
|
||||
|
||||
@ -22,7 +22,7 @@ Extends: res:LinuxMuranoInstance
|
||||
|
||||
Properties:
|
||||
hiera:
|
||||
Contract: $.class(Hiera)
|
||||
Contract: $.class(Hiera)
|
||||
|
||||
Methods:
|
||||
.init:
|
||||
|
@ -11,10 +11,10 @@
|
||||
# under the License.
|
||||
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
conf: io.murano.configuration
|
||||
sys: io.murano.system
|
||||
net: org.openstack.ci_cd_pipeline_murano_app.puppet.net
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
conf: io.murano.configuration
|
||||
sys: io.murano.system
|
||||
net: org.openstack.ci_cd_pipeline_murano_app.puppet.net
|
||||
|
||||
Name: PuppetServer
|
||||
|
||||
@ -101,9 +101,9 @@ Methods:
|
||||
_installPuppetModules:
|
||||
Body:
|
||||
- $modules:
|
||||
- 'puppetlabs-vcsrepo'
|
||||
- 'theforeman-git'
|
||||
- 'theforeman-puppet'
|
||||
- 'puppetlabs-vcsrepo'
|
||||
- 'theforeman-git'
|
||||
- 'theforeman-puppet'
|
||||
|
||||
- $this.clients.select($.instance).append($this.masterInstance).selectMany(
|
||||
let(x => $) -> $modules.select(
|
||||
|
@ -11,7 +11,7 @@
|
||||
# under the License.
|
||||
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
|
||||
Name: YamlFile
|
||||
|
||||
|
@ -12,9 +12,9 @@
|
||||
|
||||
# TODO: Make every method of this class static when moving to Mitaka
|
||||
Namespaces:
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
res: io.murano.resources
|
||||
sys: io.murano.system
|
||||
=: org.openstack.ci_cd_pipeline_murano_app.puppet
|
||||
res: io.murano.resources
|
||||
sys: io.murano.system
|
||||
|
||||
Name: YamlTool
|
||||
|
||||
|
@ -40,7 +40,7 @@ Methods:
|
||||
addHostByInstance:
|
||||
Arguments:
|
||||
- instance:
|
||||
Contract: $.class(res:LinuxMuranoInstance).notNull()
|
||||
Contract: $.class(res:LinuxMuranoInstance).notNull()
|
||||
- aliases:
|
||||
Contract:
|
||||
- $.string()
|
||||
@ -57,17 +57,17 @@ Methods:
|
||||
#
|
||||
getHostName:
|
||||
Arguments:
|
||||
- instance:
|
||||
Contract: $.class(res:LinuxMuranoInstance).notNull()
|
||||
- fqdn:
|
||||
Contract: $.bool().notNull()
|
||||
Default: false
|
||||
- instance:
|
||||
Contract: $.class(res:LinuxMuranoInstance).notNull()
|
||||
- fqdn:
|
||||
Contract: $.bool().notNull()
|
||||
Default: false
|
||||
Body:
|
||||
- $linux: new(conf:Linux)
|
||||
|
||||
- If: $fqdn
|
||||
Then:
|
||||
- Return: $linux.runCommand($instance.agent, 'hostname -f').stdout
|
||||
- Return: $linux.runCommand($instance.agent, 'hostname -f').stdout
|
||||
|
||||
- Return: $linux.runCommand($instance.agent, 'hostname -s').stdout
|
||||
|
||||
|
@ -7,4 +7,4 @@
|
||||
- murano
|
||||
|
||||
:yaml:
|
||||
:datadir: /etc/puppet/hieradata
|
||||
:datadir: /etc/puppet/hieradata
|
||||
|
@ -8,7 +8,7 @@ Description: |
|
||||
Author: 'Mirantis, Inc'
|
||||
Tags: [CI]
|
||||
Classes:
|
||||
org.openstack.ci_cd_pipeline_murano_app.puppet.SystemConfig: SystemConfig.yaml
|
||||
org.openstack.ci_cd_pipeline_murano_app.puppet.SystemConfig: SystemConfig.yaml
|
||||
UI: ui.yaml
|
||||
Logo: logo.png
|
||||
Require:
|
||||
|
@ -116,14 +116,14 @@ Methods:
|
||||
|
||||
_createPeriodicLayoutUpdate:
|
||||
Body:
|
||||
- $resources: new(sys:Resources)
|
||||
- $linux: new(conf:Linux)
|
||||
- $script: $resources.string('scripts/update_layout.sh')
|
||||
- $._environment.reporter.report($this, '[Zuul] Creating autoupdating layout.yaml file...')
|
||||
- $linux.putFile($.instance.agent, $script, '/usr/local/bin/update_layout.sh')
|
||||
- $resources: new(sys:Resources)
|
||||
- $linux: new(conf:Linux)
|
||||
- $script: $resources.string('scripts/update_layout.sh')
|
||||
- $._environment.reporter.report($this, '[Zuul] Creating autoupdating layout.yaml file...')
|
||||
- $linux.putFile($.instance.agent, $script, '/usr/local/bin/update_layout.sh')
|
||||
|
||||
- $manifest: $resources.string('scripts/update_layout.pp')
|
||||
- $this.instance.applyManifest($manifest, 60)
|
||||
- $manifest: $resources.string('scripts/update_layout.pp')
|
||||
- $this.instance.applyManifest($manifest, 60)
|
||||
|
||||
destroy:
|
||||
Body:
|
||||
|
@ -7,7 +7,7 @@ Description: |
|
||||
Author: 'Mirantis, Inc'
|
||||
Tags: [CI, Zuul]
|
||||
Classes:
|
||||
org.openstack.ci_cd_pipeline_murano_app.Zuul: Zuul.yaml
|
||||
org.openstack.ci_cd_pipeline_murano_app.Zuul: Zuul.yaml
|
||||
UI: ui.yaml
|
||||
Require:
|
||||
org.openstack.ci_cd_pipeline_murano_app.puppet.Puppet:
|
||||
|
Loading…
x
Reference in New Issue
Block a user