murano-apps/PivotalOperationsManager/package/UI/ui.yaml

150 lines
5.3 KiB
YAML

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
Version: 2.3
Templates:
customJoinNet:
- ?:
type: io.murano.resources.ExistingNeutronNetwork
internalNetworkName: $.instanceConfiguration.network[0]
internalSubnetworkName: $.instanceConfiguration.network[1]
Application:
?:
type: com.example.pivotal.OpsManager
username: $.opsManagerConfiguration.username
password: $.opsManagerConfiguration.password
auth_url: $.opsManagerConfiguration.auth_url
osUser: $.opsManagerConfiguration.osUsername
osPass: $.opsManagerConfiguration.osPassword
osTenant: $.opsManagerConfiguration.osTenant
sshKey: $.opsManagerConfiguration.sshKey
instance:
?:
type: com.example.pivotal.OpsManagerInstance
name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
flavor: $.instanceConfiguration.flavor
image: 'Ops Manager'
keyname: $.instanceConfiguration.keyPair
availabilityZone: $.instanceConfiguration.availabilityZone
assignFloatingIp: $.appConfiguration.assignFloatingIP
networks:
useEnvironmentNetwork: $.instanceConfiguration.network[0]=null
useFlatNetwork: false
customNetworks: switch($.instanceConfiguration.network[0], $=null=>list(), $!=null=>$customJoinNet)
Forms:
- appConfiguration:
fields:
- name: license
type: string
description: Apache License, Version 2.0
hidden: true
required: false
- name: assignFloatingIP
type: boolean
label: Assign Floating IP
description: >-
Select to true to assign floating IP automatically
initial: true
required: false
- 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
requirements:
min_disk: 80
min_vcpus: 4
min_memory_mb: 8192
description: >-
Select registered in Openstack flavor. Consider that application performance
depends on this parameter.
required: false
- name: keyPair
type: keypair
label: Key Pair
description: >-
Select the 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 application would be installed.
required: false
- name: network
type: network
label: Network
description: Select a network to join. 'Auto' corresponds to a default environment's network.
required: false
murano_networks: translate
- name: unitNamingPattern
type: string
label: Instance Naming Pattern
required: false
maxLength: 64
regexpValidator: '^[a-zA-z][-_\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.
- opsManagerConfiguration:
fields:
- name: username
type: string
label: OpsManager user
description: >-
Enter a name for first user of Operations Manager
- name: password
type: password
label: OpsManager User Password
description: >-
Enter a password for first user of Operations Manager
- name: auth_url
type: string
label: Openstack Identity url
description: >-
Provide the Service Endpoint for the Identity service
- name: osTenant
type: string
label: OpenStack tenant
description: >-
Enter a name of your tenant
- name: osUsername
type: string
label: OpenStack user
description: >-
Enter a name of your current OpenStack user
- name: osPassword
type: password
regexpValidator: '.*'
label: OpenStack password
confirmInput: false
description: >-
Enter a password of your current OpenStack user
- name: sshKey
type: text
label: SSH Private Key
description: >-
In a text editor, open the key pair file, copy and paste the content of file into the field