Merge "Add 'userdata_format' to Server heat template"

This commit is contained in:
Jenkins 2014-07-11 12:12:09 +00:00 committed by Gerrit Code Review
commit 0bc7b5ca48
7 changed files with 47 additions and 4 deletions

View File

@ -0,0 +1,16 @@
Namespaces:
=: io.murano.resources
sys: io.murano.system
std: io.murano
Name: HeatSWConfigInstance
Extends:
- Instance
Methods:
prepareUserData:
Body:
- Return:
data:
format: SOFTWARE_CONFIG

View File

@ -0,0 +1,11 @@
Namespaces:
=: io.murano.resources
sys: io.murano.system
std: io.murano
Name: HeatSWConfigLinuxInstance
Extends:
- LinuxInstance
- HeatSWConfigInstance

View File

@ -82,7 +82,9 @@ Methods:
$.joinNet($.environment.defaultNetworks.flat, $securityGroupName)
- $.networks.customNetworks.select($this.joinNet($, $securityGroupName))
- $userData: $.prepareUserData()
- $preparedUserData: $.prepareUserData()
- $userData: $preparedUserData.data
- $userDataFormat: $preparedUserData.format
- $template:
resources:
@ -92,6 +94,7 @@ Methods:
flavor: $.flavor
image: $.image
user_data: $userData
user_data_format: $userDataFormat
key_name: $.keyname
outputs:
format('{0}-assigned-ip', $.name):
@ -231,3 +234,8 @@ Methods:
Contract: $.string().notNull()
prepareUserData:
Body:
Return:
data: null
# Valid values are HEAT_CFNTOOLS, RAW and SOFTWARE_CONFIG
format: HEAT_CFNTOOLS

View File

@ -29,5 +29,7 @@ Methods:
"%INTERNAL_HOSTNAME%": $.name
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
"%CA_ROOT_CERT_BASE64%": ""
- Return: $initScript.replace($scriptReplacements)
- Return:
data: $initScript.replace($scriptReplacements)
format: HEAT_CFNTOOLS

View File

@ -16,7 +16,9 @@ Properties:
Methods:
prepareUserData:
Body:
- Return: $.customUserData
- Return:
data: $.customUserData
format: HEAT_CFNTOOLS
setCustomUserData:
Arguments:

View File

@ -42,4 +42,6 @@ Methods:
"%INTERNAL_HOSTNAME%": $.name
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
"%CA_ROOT_CERT_BASE64%": ""
- Return: $initScript.replace($scriptReplacements)
- Return:
data: $initScript.replace($scriptReplacements)
format: HEAT_CFNTOOLS

View File

@ -27,6 +27,8 @@ Classes:
io.murano.resources.Instance: resources/Instance.yaml
io.murano.resources.LinuxInstance: resources/LinuxInstance.yaml
io.murano.resources.LinuxMuranoInstance: resources/LinuxMuranoInstance.yaml
io.murano.resources.HeatSWConfigInstance: resources/HeatSWConfigInstance.yaml
io.murano.resources.HeatSWConfigLinuxInstance: resources/HeatSWConfigLinuxInstance.yaml
io.murano.resources.LinuxUDInstance: resources/LinuxUDInstance.yaml
io.murano.resources.WindowsInstance: resources/WindowsInstance.yaml
io.murano.resources.NeutronNetwork: resources/NeutronNetwork.yaml