Added the Key Pair drop down list to UI forms

Added new parameter for each Linux-based
(Linux Telnet and Linux Apache) services.

User can select the Key Pair from the drop down list
durring the Murano Linux-based services configuration.

Implemented: blueprint key-pair-for-linux-services
Change-Id: I774cd3714791ea7db1bd4889d38f52a1067c50fa
This commit is contained in:
TimurNurlygayanov 2013-11-22 15:52:10 +04:00
parent 70de267b88
commit 1c2fe7c42c
5 changed files with 17 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"KeyName": {
"Description": "Key Pair name for Load Balancer",
"Type": "String",
"Default": "murano-lb-key"
"Default": "$keyName"
}
},
@ -13,6 +13,7 @@
"$instanceName": {
"Type": "AWS::EC2::Instance",
"Properties": {
"KeyName": { "Ref" : "KeyName" },
"InstanceType": "$instanceType",
"ImageId": "$imageName",
"AvailabilityZone": "$availabilityZone",

View File

@ -34,6 +34,11 @@ forms:
label: Instance Count
description: Several instances with Apache web Service can be created at one time.
helpText: Enter an integer value between 1 and 10
- name: keyPair
type: keypair
label: Key Pair
description: >-
The Key Pair for VMs with this service
- name: unitNamingPattern
type: string
label: Hostname
@ -74,4 +79,4 @@ forms:
type: azone
label: Availability zone
description: Select availability zone where service would be installed.
required: false
required: false

View File

@ -43,6 +43,11 @@ forms:
required: false
widgetMedia:
css: {all: [muranodashboard/css/checkbox.css]}
- name: keyPair
type: keypair
label: Key Pair
description: >-
The Key Pair for VMs with this service
- name: unitNamingPattern
type: string
label: Hostname

View File

@ -16,6 +16,9 @@
<mapping name="instanceName">
<select path="state.hostname"/>
</mapping>
<mapping name="keyName">
<select path="::keyPair.name"/>
</mapping>
<mapping name="userData">
<prepare-user-data template="Linux" initFile="linux_init.sh">
<parameter name="hostname">

View File

@ -10,6 +10,7 @@
<parameter name="mappings">
<map>
<mapping name="instanceName"><select path="state.hostname"/></mapping>
<mapping name="keyName"><select path="::keyPair.name"/></mapping>
<mapping name="userData">
<prepare-user-data template="Linux" initFile="linux_init.sh">
<parameter name="hostname"><select path="state.hostname"/></parameter>