84 lines
3.1 KiB
YAML
84 lines
3.1 KiB
YAML
name: Demo Service
|
|
type: demoService
|
|
|
|
description: >-
|
|
<strong> Demo Service </strong>
|
|
shows how Murano is working.
|
|
|
|
unitTemplates:
|
|
- {}
|
|
|
|
forms:
|
|
- serviceConfiguration:
|
|
fields:
|
|
- name: configuration
|
|
type: string
|
|
hidden: true
|
|
initial: standalone
|
|
- name: name
|
|
type: string
|
|
label: Service Name
|
|
description: >-
|
|
To identify your service in logs please specify a service name
|
|
- name: dcInstances
|
|
type: instance
|
|
label: Instance Count
|
|
description: >-
|
|
Murano can provision more then one instance of the service at a time.
|
|
For a demo scenario only 2 instances are allowed.
|
|
attributeNames: units
|
|
minValue: 1
|
|
maxValue: 2
|
|
initial: 2
|
|
<<<<<<< HEAD
|
|
helpText: Enter 1 and 2 value
|
|
- name: unitNamingPattern
|
|
type: string
|
|
label: Hostname template
|
|
description: >-
|
|
For your convenience all instance hostnames can be named
|
|
in the same way. Enter a name and use # character for incrementation.
|
|
For example, host# turns into host1, host2, etc. Please follow Windows
|
|
hostname restrictions.
|
|
required: false
|
|
regexpValidator: '^(([a-zA-Z0-9#][a-zA-Z0-9-#]*[a-zA-Z0-9#])\.)*([A-Za-z0-9#]|[A-Za-z0-9#][A-Za-z0-9-#]*[A-Za-z0-9#])$'
|
|
helpText: Optional field for a machine hostname template
|
|
# temporaryHack
|
|
widgetMedia:
|
|
js: [muranodashboard/js/support_placeholder.js]
|
|
css: {all: [muranodashboard/css/support_placeholder.css]}
|
|
validators:
|
|
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
|
|
- expr: {YAQL: not $.serviceConfiguration.unitNamingPattern.bool() or ('#' in $.serviceConfiguration.unitNamingPattern)}
|
|
message: Incrementation symbol "#" is required in the Hostname template
|
|
- instanceConfiguration:
|
|
fields:
|
|
- name: title
|
|
type: string
|
|
required: false
|
|
hidden: true
|
|
attributeNames: false
|
|
descriptionTitle: Instance Configuration
|
|
description: Specify some instance parameters on which service would be created.
|
|
- name: flavor
|
|
type: flavor
|
|
label: Instance flavor
|
|
description: >-
|
|
Select registered in Openstack flavor. Consider that service performance
|
|
depends on this parameter.
|
|
required: false
|
|
- name: osImage
|
|
type: image
|
|
label: Instance image
|
|
description: >-
|
|
Select valid image for a service. Image should already be prepared and
|
|
registered in glance.
|
|
- name: availabilityZone
|
|
type: azone
|
|
label: Availability zone
|
|
description: Select availability zone where service would be installed.
|
|
required: false
|
|
=======
|
|
helpText: Enter 1 and 2 value
|
|
>>>>>>> 0dffd2a... Add new service for demo
|