WIP change to stack profile example.
Senlin parser will support '!include' constructor for users to compose a larger YAML file from different ones.
This commit is contained in:
parent
db29298dad
commit
dd43a6b195
@ -1,12 +1,12 @@
|
||||
senlin_profile_version: 2014-10-16
|
||||
type: os.heat.stack
|
||||
spec:
|
||||
template:
|
||||
heat_template_version: 2014-10-16
|
||||
resources:
|
||||
random:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 64
|
||||
!include node_stack.yaml
|
||||
context: default
|
||||
parameters:
|
||||
len: 16
|
||||
outputs:
|
||||
result:
|
||||
value: {get_attr: [random, value]}
|
||||
name: node-%index%
|
||||
timeoout: 60
|
||||
enable_rollback: True
|
||||
|
12
examples/profiles/node_stack.yaml
Normal file
12
examples/profiles/node_stack.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
heat_template_version: 2014-10-16
|
||||
parameters:
|
||||
len:
|
||||
type: integer
|
||||
resources:
|
||||
random:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 64
|
||||
outputs:
|
||||
result:
|
||||
value: {get_attr: [random, value]}
|
Loading…
Reference in New Issue
Block a user