Merge "Update dynamic UI sample - according to the new format"

This commit is contained in:
Jenkins 2014-04-14 08:55:45 +00:00 committed by Gerrit Code Review
commit 3349aca848

View File

@ -1,10 +1,36 @@
unitTemplates: Version: 2
- isMaster: true
recoveryPassword: {YAQL: $.serviceConfiguration.recoveryPassword}
- isMaster: false
recoveryPassword: {YAQL: $.serviceConfiguration.recoveryPassword}
forms: Templates:
primaryController:
?:
type: io.murano.services.windows.activeDirectory.PrimaryController
host:
?:
type: io.murano.services.windows.Host
adminPassword: $.serviceConfiguration.adminPassword
name: interpolate($.serviceConfiguration.unitNamingPattern, 1)
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
secondaryController:
?:
type: io.murano.services.windows.activeDirectory.SecondaryController
host:
?:
type: io.murano.services.windows.Host
adminPassword: $.serviceConfiguration.adminPassword
name: interpolate($.serviceConfiguration.unitNamingPattern, $index + 1)
flavor: $.instanceConfiguration.flavor
image: $.instanceConfiguration.osImage
Application:
?:
type: io.murano.services.windows.activeDirectory.ActiveDirectory
name: $.serviceConfiguration.name
primaryController: $primaryController
secondaryControllers: repeat($secondaryController, $.serviceConfiguration.dcInstances - 1)
Forms:
- serviceConfiguration: - serviceConfiguration:
fields: fields:
- name: configuration - name: configuration
@ -21,7 +47,6 @@ forms:
DNS server will be automatically set up on each of the Domain DNS server will be automatically set up on each of the Domain
Controller instances. Note: Only first 15 characters or characters Controller instances. Note: Only first 15 characters or characters
before first period is used as NetBIOS name. before first period is used as NetBIOS name.
attributeNames: [name, domain]
minLength: 2 minLength: 2
maxLength: 255 maxLength: 255
validators: validators:
@ -47,13 +72,12 @@ forms:
Just letters, numbers and dashes are allowed. Just letters, numbers and dashes are allowed.
A dot can be used to create subdomains A dot can be used to create subdomains
- name: dcInstances - name: dcInstances
type: instance type: integer
label: Instance Count label: Instance Count
description: >- description: >-
You can create several Active Directory instances by setting You can create several Active Directory instances by setting
instance number larger than one. One primary Domain Controller instance number larger than one. One primary Domain Controller
and a few secondary DCs will be created. and a few secondary DCs will be created.
attributeNames: units
minValue: 1 minValue: 1
maxValue: 100 maxValue: 100
initial: 1 initial: 1
@ -81,7 +105,6 @@ forms:
- name: recoveryPassword - name: recoveryPassword
type: password type: password
label: Recovery password label: Recovery password
attributeNames: false
- name: assignFloatingIP - name: assignFloatingIP
required: false required: false
type: floatingip type: floatingip
@ -91,7 +114,7 @@ forms:
initial: false initial: false
required: false required: false
widgetMedia: widgetMedia:
css: {all: [muranodashboard/css/checkbox.css]} css: {all: ['muranodashboard/css/checkbox.css']}
- name: unitNamingPattern - name: unitNamingPattern
type: string type: string
label: Hostname template label: Hostname template
@ -107,11 +130,11 @@ forms:
helpText: Optional field for a machine hostname template helpText: Optional field for a machine hostname template
# temporaryHack # temporaryHack
widgetMedia: widgetMedia:
js: [muranodashboard/js/support_placeholder.js] js: ['muranodashboard/js/support_placeholder.js']
css: {all: [muranodashboard/css/support_placeholder.css]} css: {all: ['muranodashboard/css/support_placeholder.css']}
validators: validators:
# if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern # if unitNamingPattern is given and dcInstances > 1, then '#' should occur in unitNamingPattern
- expr: {YAQL: $.serviceConfiguration.dcInstances < 2 or not $.serviceConfiguration.unitNamingPattern.bool() or '#' in $.serviceConfiguration.unitNamingPattern} - expr: $.serviceConfiguration.dcInstances < 2 or not $.serviceConfiguration.unitNamingPattern.bool() or '#' in $.serviceConfiguration.unitNamingPattern
message: Incrementation symbol "#" is required in the Hostname template message: Incrementation symbol "#" is required in the Hostname template
- instanceConfiguration: - instanceConfiguration:
fields: fields:
@ -119,7 +142,6 @@ forms:
type: string type: string
required: false required: false
hidden: true hidden: true
attributeNames: false
descriptionTitle: Instance Configuration descriptionTitle: Instance Configuration
description: Specify some instance parameters on which service would be created. description: Specify some instance parameters on which service would be created.
- name: flavor - name: flavor