133 lines
4.7 KiB
YAML
133 lines
4.7 KiB
YAML
Version: 2
|
|
|
|
Application:
|
|
?:
|
|
type: org.openstack.ci_cd_pipeline_murano_app.Jenkins
|
|
name: $.appConfiguration.name
|
|
ldap: $.appConfiguration.OpenLDAP
|
|
gerrit: $.appConfiguration.Gerrit
|
|
cfplugin: $.appConfiguration.cfplugin
|
|
dockerplugin: $.appConfiguration.dockerplugin
|
|
gitUser: $.appConfiguration.gitUser
|
|
gitEmail: $.appConfiguration.gitEmail
|
|
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: Jenkins
|
|
description: >-
|
|
Enter a desired name for the application. Just A-Z, a-z, 0-9, dash and
|
|
underline are allowed
|
|
- name: cfplugin
|
|
type: boolean
|
|
label: Cloud Foundry Plugin
|
|
description: >-
|
|
Select to true to install CF Plugin automatically
|
|
initial: false
|
|
required: false
|
|
- name: dockerplugin
|
|
type: boolean
|
|
label: CloudBees Docker Build and Publish plugin
|
|
description: >-
|
|
Select to true to install Docker Build and Publish plugin automatically
|
|
initial: false
|
|
required: false
|
|
- name: assignFloatingIP
|
|
type: boolean
|
|
label: Assign Floating IP
|
|
description: >-
|
|
Select to true to assign floating IP automatically
|
|
initial: true
|
|
required: false
|
|
- name: OpenLDAP
|
|
type: org.openstack.ci_cd_pipeline_murano_app.OpenLDAP
|
|
required: false
|
|
description: >-
|
|
Specify OpenLDAP domain for authentication
|
|
- 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: Gerrit
|
|
type: org.openstack.ci_cd_pipeline_murano_app.Gerrit
|
|
required: false
|
|
description: >-
|
|
Specify Gerrit app for auto user configuration.
|
|
- name: gitUser
|
|
type: string
|
|
label: Git username
|
|
required: false
|
|
regexpValidator: '^[-_\w]+$'
|
|
description: >-
|
|
Enter a desired name for git user
|
|
- name: gitEmail
|
|
type: string
|
|
label: Git user email
|
|
required: false
|
|
regexpValidator: '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
|
|
description: >-
|
|
Enter a desired email for git user
|
|
- 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: jenkins
|
|
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.
|