
Make system-config url available for configuring by setting it out of the class. Also add property for choosing which branch should be used stable or master. By default it will be "master" branch with url pointing on fuel-infra repository. Also add UI form for SystemConfig package, which will be used later by UI forms of Applications. Change-Id: I52779d9b190ddee1de2243de812e3f7133584b6d
131 lines
4.5 KiB
YAML
131 lines
4.5 KiB
YAML
Version: 2
|
|
|
|
Application:
|
|
?:
|
|
type: org.openstack.ci_cd_pipeline_murano_app.Nodepool
|
|
name: $.appConfiguration.name
|
|
jenkins: $.appConfiguration.Jenkins
|
|
zuul: $.appConfiguration.Zuul
|
|
authUrl: $.openstackConfiguration.authUrl
|
|
username: $.openstackConfiguration.username
|
|
tenant: $.openstackConfiguration.tenant
|
|
password: $.openstackConfiguration.password
|
|
systemConfigRepo: $.appConfiguration.systemConfigRepo
|
|
instance:
|
|
?:
|
|
type: org.openstack.ci_cd_pipeline_murano_app.puppet.PuppetInstance
|
|
name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
|
|
flavor: $.instanceConfiguration.flavor
|
|
image: $.instanceConfiguration.osImage
|
|
keyname: $.instanceConfiguration.keyPair
|
|
availabilityZone: $.instanceConfiguration.availabilityZone
|
|
assignFloatingIp: $.appConfiguration.assignFloatingIP
|
|
|
|
Forms:
|
|
- appConfiguration:
|
|
fields:
|
|
- name: name
|
|
type: string
|
|
label: Application Name
|
|
initial: Nodepool
|
|
description: >-
|
|
Enter a desired name for the application. Just A-Z, a-z, 0-9, dash and
|
|
underline are allowed
|
|
- name: assignFloatingIP
|
|
type: boolean
|
|
label: Assign Floating IP
|
|
description: >-
|
|
Select to true to assign floating IP automatically
|
|
initial: true
|
|
required: false
|
|
- name: systemConfigRepo
|
|
type: org.openstack.ci_cd_pipeline_murano_app.puppet.SystemConfig
|
|
label: system-config Url
|
|
required: false
|
|
descriptionTitle: system-config Url
|
|
description: >
|
|
Please, provide url for system-config repository.
|
|
- name: Jenkins
|
|
type: org.openstack.ci_cd_pipeline_murano_app.Jenkins
|
|
label: Jenkins
|
|
required: true
|
|
description: >-
|
|
Specify Jenkins.
|
|
- name: Zuul
|
|
type: org.openstack.ci_cd_pipeline_murano_app.Zuul
|
|
label: Zuul
|
|
required: true
|
|
description: >-
|
|
Specify Zuul.
|
|
|
|
- openstackConfiguration:
|
|
fields:
|
|
- name: authUrl
|
|
type: string
|
|
label: Keystone Auth URL
|
|
description: Provide Keystone Auth URL.
|
|
initial: http://192.168.0.2:5000/v2.0
|
|
- name: username
|
|
type: string
|
|
label: Keystone username
|
|
description: Provide Keystone username.
|
|
initial: admin
|
|
- name: tenant
|
|
type: string
|
|
label: Keystone tenant
|
|
description: Provide Keystone tenant name.
|
|
initial: admin
|
|
- name: password
|
|
type: string
|
|
description: Provide Keystone password.
|
|
label: Keystone password
|
|
initial: secret
|
|
|
|
- instanceConfiguration:
|
|
fields:
|
|
- name: title
|
|
type: string
|
|
required: false
|
|
hidden: true
|
|
description: Specify some instance parameters on which the application would be created
|
|
- name: flavor
|
|
type: flavor
|
|
label: Instance flavor
|
|
description: >-
|
|
Select registered in Openstack flavor. Consider that application performance
|
|
depends on this parameter.
|
|
initial: m1.tiny
|
|
required: false
|
|
- name: osImage
|
|
type: image
|
|
imageType: linux
|
|
label: Instance image
|
|
description: >-
|
|
Select a valid image for the application. Image should already be prepared and
|
|
registered in glance.
|
|
- name: keyPair
|
|
type: keypair
|
|
label: Key Pair
|
|
description: >-
|
|
Select a Key Pair to control access to instances. You can login to
|
|
instances using this KeyPair after the deployment of application.
|
|
required: false
|
|
- name: availabilityZone
|
|
type: azone
|
|
label: Availability zone
|
|
description: Select availability zone where the application would be installed.
|
|
required: false
|
|
- name: unitNamingPattern
|
|
type: string
|
|
initial: nodepool
|
|
label: Instance Naming Pattern
|
|
required: false
|
|
maxLength: 200
|
|
regexpValidator: '^[-_\w]+$'
|
|
errorMessages:
|
|
invalid: Just letters, numbers, underscores and hyphens are allowed.
|
|
helpText: Just letters, numbers, underscores and hyphens are allowed.
|
|
description: >-
|
|
Specify a string, that will be used in instance hostname.
|
|
Just A-Z, a-z, 0-9, dash and underline are allowed.
|