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:
tengqm 2014-12-29 14:45:27 +08:00
parent db29298dad
commit dd43a6b195
2 changed files with 21 additions and 9 deletions

View File

@ -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
outputs:
result:
value: {get_attr: [random, value]}
!include node_stack.yaml
context: default
parameters:
len: 16
outputs:
name: node-%index%
timeoout: 60
enable_rollback: True

View 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]}