Merge "Add 'userdata_format' to Server heat template"
This commit is contained in:
commit
0bc7b5ca48
16
meta/io.murano/Classes/resources/HeatSWConfigInstance.yaml
Normal file
16
meta/io.murano/Classes/resources/HeatSWConfigInstance.yaml
Normal 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
|
@ -0,0 +1,11 @@
|
|||||||
|
Namespaces:
|
||||||
|
=: io.murano.resources
|
||||||
|
sys: io.murano.system
|
||||||
|
std: io.murano
|
||||||
|
|
||||||
|
Name: HeatSWConfigLinuxInstance
|
||||||
|
|
||||||
|
Extends:
|
||||||
|
- LinuxInstance
|
||||||
|
- HeatSWConfigInstance
|
||||||
|
|
@ -82,7 +82,9 @@ Methods:
|
|||||||
$.joinNet($.environment.defaultNetworks.flat, $securityGroupName)
|
$.joinNet($.environment.defaultNetworks.flat, $securityGroupName)
|
||||||
- $.networks.customNetworks.select($this.joinNet($, $securityGroupName))
|
- $.networks.customNetworks.select($this.joinNet($, $securityGroupName))
|
||||||
|
|
||||||
- $userData: $.prepareUserData()
|
- $preparedUserData: $.prepareUserData()
|
||||||
|
- $userData: $preparedUserData.data
|
||||||
|
- $userDataFormat: $preparedUserData.format
|
||||||
|
|
||||||
- $template:
|
- $template:
|
||||||
resources:
|
resources:
|
||||||
@ -92,6 +94,7 @@ Methods:
|
|||||||
flavor: $.flavor
|
flavor: $.flavor
|
||||||
image: $.image
|
image: $.image
|
||||||
user_data: $userData
|
user_data: $userData
|
||||||
|
user_data_format: $userDataFormat
|
||||||
key_name: $.keyname
|
key_name: $.keyname
|
||||||
outputs:
|
outputs:
|
||||||
format('{0}-assigned-ip', $.name):
|
format('{0}-assigned-ip', $.name):
|
||||||
@ -231,3 +234,8 @@ Methods:
|
|||||||
Contract: $.string().notNull()
|
Contract: $.string().notNull()
|
||||||
|
|
||||||
prepareUserData:
|
prepareUserData:
|
||||||
|
Body:
|
||||||
|
Return:
|
||||||
|
data: null
|
||||||
|
# Valid values are HEAT_CFNTOOLS, RAW and SOFTWARE_CONFIG
|
||||||
|
format: HEAT_CFNTOOLS
|
||||||
|
@ -29,5 +29,7 @@ Methods:
|
|||||||
"%INTERNAL_HOSTNAME%": $.name
|
"%INTERNAL_HOSTNAME%": $.name
|
||||||
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
|
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
|
||||||
"%CA_ROOT_CERT_BASE64%": ""
|
"%CA_ROOT_CERT_BASE64%": ""
|
||||||
- Return: $initScript.replace($scriptReplacements)
|
- Return:
|
||||||
|
data: $initScript.replace($scriptReplacements)
|
||||||
|
format: HEAT_CFNTOOLS
|
||||||
|
|
||||||
|
@ -16,7 +16,9 @@ Properties:
|
|||||||
Methods:
|
Methods:
|
||||||
prepareUserData:
|
prepareUserData:
|
||||||
Body:
|
Body:
|
||||||
- Return: $.customUserData
|
- Return:
|
||||||
|
data: $.customUserData
|
||||||
|
format: HEAT_CFNTOOLS
|
||||||
|
|
||||||
setCustomUserData:
|
setCustomUserData:
|
||||||
Arguments:
|
Arguments:
|
||||||
|
@ -42,4 +42,6 @@ Methods:
|
|||||||
"%INTERNAL_HOSTNAME%": $.name
|
"%INTERNAL_HOSTNAME%": $.name
|
||||||
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
|
"%MURANO_SERVER_ADDRESS%": coalesce(config(file_server), config(rabbitmq, host))
|
||||||
"%CA_ROOT_CERT_BASE64%": ""
|
"%CA_ROOT_CERT_BASE64%": ""
|
||||||
- Return: $initScript.replace($scriptReplacements)
|
- Return:
|
||||||
|
data: $initScript.replace($scriptReplacements)
|
||||||
|
format: HEAT_CFNTOOLS
|
||||||
|
@ -27,6 +27,8 @@ Classes:
|
|||||||
io.murano.resources.Instance: resources/Instance.yaml
|
io.murano.resources.Instance: resources/Instance.yaml
|
||||||
io.murano.resources.LinuxInstance: resources/LinuxInstance.yaml
|
io.murano.resources.LinuxInstance: resources/LinuxInstance.yaml
|
||||||
io.murano.resources.LinuxMuranoInstance: resources/LinuxMuranoInstance.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.LinuxUDInstance: resources/LinuxUDInstance.yaml
|
||||||
io.murano.resources.WindowsInstance: resources/WindowsInstance.yaml
|
io.murano.resources.WindowsInstance: resources/WindowsInstance.yaml
|
||||||
io.murano.resources.NeutronNetwork: resources/NeutronNetwork.yaml
|
io.murano.resources.NeutronNetwork: resources/NeutronNetwork.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user