deb-murano/meta/io.murano/Classes/resources/LinuxUDInstance.yaml
Steve McLellan 1c1144692c Remove Contract on customUserData
A common paradigm with userdata is to supply:
  userdata:
    str_replace:
      template: |
        <some script>
    params:
      param1: value1

With the contract on customUserData being a string, passing str_replace
as the argument results in coercion to a string, which makes it invalid.

Change-Id: I8bcf788522fc2428eaa3c8529ee11b5ed385099b
2014-09-09 11:55:19 -05:00

27 lines
406 B
YAML

Namespaces:
=: io.murano.resources
std: io.murano
Name: LinuxUDInstance
Extends:
- LinuxInstance
Methods:
initialize:
Body:
- $.customUserData: null
prepareUserData:
Body:
- Return:
data: $.customUserData
format: HEAT_CFNTOOLS
setCustomUserData:
Arguments:
- data:
Contract: $.notNull()
Body:
- $.customUserData: $data