Merge "Add step to CiCd UI form"
This commit is contained in:
commit
95e27c4467
@ -21,6 +21,19 @@ Properties:
|
|||||||
Contract: $.class(opaas:Jenkins)
|
Contract: $.class(opaas:Jenkins)
|
||||||
Usage: Out
|
Usage: Out
|
||||||
|
|
||||||
|
ldapRootUser:
|
||||||
|
Contract: $.string().notNull()
|
||||||
|
ldapRootPass:
|
||||||
|
Contract: $.string().notNull()
|
||||||
|
ldapRootEmail:
|
||||||
|
Contract: $.string().notNull()
|
||||||
|
ldapUser:
|
||||||
|
Contract: $.string()
|
||||||
|
ldapPass:
|
||||||
|
Contract: $.string()
|
||||||
|
ldapEmail:
|
||||||
|
Contract: $.string()
|
||||||
|
|
||||||
instance_name:
|
instance_name:
|
||||||
Contract: $.string().notNull()
|
Contract: $.string().notNull()
|
||||||
flavor:
|
flavor:
|
||||||
@ -45,10 +58,6 @@ Methods:
|
|||||||
Body:
|
Body:
|
||||||
- $._environment.reporter.report($this, 'Deploying CI/CD')
|
- $._environment.reporter.report($this, 'Deploying CI/CD')
|
||||||
|
|
||||||
- $user: 'user'
|
|
||||||
- $password: 'P@ssw0rd'
|
|
||||||
- $mail: 'user@mail.com'
|
|
||||||
|
|
||||||
# OpenLDAP
|
# OpenLDAP
|
||||||
- If: $this.ldap = null
|
- If: $this.ldap = null
|
||||||
Then:
|
Then:
|
||||||
@ -64,12 +73,12 @@ Methods:
|
|||||||
name => 'OpenLDAP',
|
name => 'OpenLDAP',
|
||||||
instance => $ldapInstance,
|
instance => $ldapInstance,
|
||||||
domain => 'infra.local',
|
domain => 'infra.local',
|
||||||
ldapRootUser => 'root',
|
ldapRootUser => $.ldapRootUser,
|
||||||
ldapRootPass => 'openstack',
|
ldapRootPass => $.ldapRootPass,
|
||||||
ldapRootEmail => 'root@mail.com',
|
ldapRootEmail => $.ldapRootEmail,
|
||||||
ldapUser => $user,
|
ldapUser => $.ldapUser,
|
||||||
ldapPass => $password,
|
ldapPass => $.ldapPass,
|
||||||
ldapEmail => $mail)
|
ldapEmail => $.ldapEmail)
|
||||||
|
|
||||||
# Gerrit
|
# Gerrit
|
||||||
- If: $this.gerrit = null
|
- If: $this.gerrit = null
|
||||||
@ -93,7 +102,7 @@ Methods:
|
|||||||
Then:
|
Then:
|
||||||
- $._environment.reporter.report($this,
|
- $._environment.reporter.report($this,
|
||||||
'Jenkins credentials user={0}, password={1}'.format(
|
'Jenkins credentials user={0}, password={1}'.format(
|
||||||
$user, $password))
|
$.ldapUser, $.ldapPass))
|
||||||
- $jenkinsInstanceName: concat($.instance_name, '-jenkins')
|
- $jenkinsInstanceName: concat($.instance_name, '-jenkins')
|
||||||
- $jenkinsInstance: new(puppet:PuppetInstance, $._environment,
|
- $jenkinsInstance: new(puppet:PuppetInstance, $._environment,
|
||||||
name => $jenkinsInstanceName,
|
name => $jenkinsInstanceName,
|
||||||
@ -108,8 +117,8 @@ Methods:
|
|||||||
ldap => $this.ldap,
|
ldap => $this.ldap,
|
||||||
gerrit => $this.gerrit,
|
gerrit => $this.gerrit,
|
||||||
cfplugin => false,
|
cfplugin => false,
|
||||||
gitUser => $user,
|
gitUser => $.ldapUser,
|
||||||
gitEmail => $mail)
|
gitEmail => $.ldapEmail)
|
||||||
|
|
||||||
# Deploy all
|
# Deploy all
|
||||||
- Parallel:
|
- Parallel:
|
||||||
|
@ -4,6 +4,12 @@ Application:
|
|||||||
?:
|
?:
|
||||||
type: io.murano.opaas.CiCdEnvironment
|
type: io.murano.opaas.CiCdEnvironment
|
||||||
name: 'CI/CD'
|
name: 'CI/CD'
|
||||||
|
ldapRootUser: $.appConfiguration.ldapRootUser
|
||||||
|
ldapRootPass: $.appConfiguration.ldapRootPass
|
||||||
|
ldapRootEmail: $.appConfiguration.ldapRootEmail
|
||||||
|
ldapUser: $.appConfiguration.ldapUser
|
||||||
|
ldapPass: $.appConfiguration.ldapPass
|
||||||
|
ldapEmail: $.appConfiguration.ldapEmail
|
||||||
instance_name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
|
instance_name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
|
||||||
flavor: $.instanceConfiguration.flavor
|
flavor: $.instanceConfiguration.flavor
|
||||||
image: $.instanceConfiguration.osImage
|
image: $.instanceConfiguration.osImage
|
||||||
@ -12,6 +18,59 @@ Application:
|
|||||||
assignFloatingIp: true
|
assignFloatingIp: true
|
||||||
|
|
||||||
Forms:
|
Forms:
|
||||||
|
- appConfiguration:
|
||||||
|
fields:
|
||||||
|
- name: ldapRootUser
|
||||||
|
type: string
|
||||||
|
initial: root
|
||||||
|
label: Root Username
|
||||||
|
descriptionTitle: Root Username
|
||||||
|
description: >-
|
||||||
|
Please, provide name for root user
|
||||||
|
- name: ldapRootPass
|
||||||
|
type: password
|
||||||
|
initial: Openst@ck0
|
||||||
|
label: Root Password
|
||||||
|
descriptionTitle: Root Password
|
||||||
|
description: >-
|
||||||
|
Please, provide password for root user
|
||||||
|
- name: ldapRootEmail
|
||||||
|
type: string
|
||||||
|
initial: root@mail.com
|
||||||
|
regexpValidator: '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
|
||||||
|
errorMessages:
|
||||||
|
invalid: Please provide valid email address.
|
||||||
|
label: Root User Email
|
||||||
|
descriptionTitle: Root User Email
|
||||||
|
description: >-
|
||||||
|
Please, provide email for root user
|
||||||
|
- name: ldapUser
|
||||||
|
type: string
|
||||||
|
initial: user
|
||||||
|
label: Username
|
||||||
|
required: false
|
||||||
|
descriptionTitle: Regular User Name
|
||||||
|
description: >-
|
||||||
|
Please, provide name for regular user
|
||||||
|
- name: ldapPass
|
||||||
|
type: password
|
||||||
|
initial: P@ssw0rd
|
||||||
|
label: Password
|
||||||
|
required: false
|
||||||
|
descriptionTitle: Regular User Password
|
||||||
|
description: >-
|
||||||
|
Please, provide password for regular user
|
||||||
|
- name: ldapEmail
|
||||||
|
type: string
|
||||||
|
initial: user@mail.com
|
||||||
|
regexpValidator: '^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'
|
||||||
|
errorMessages:
|
||||||
|
invalid: Please provide valid email address.
|
||||||
|
label: Email
|
||||||
|
required: false
|
||||||
|
descriptionTitle: Regular user Email
|
||||||
|
description: >-
|
||||||
|
Please, provide regular user email
|
||||||
- instanceConfiguration:
|
- instanceConfiguration:
|
||||||
fields:
|
fields:
|
||||||
- name: title
|
- name: title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user