tripleo-heat-templates/extraconfig/post_deploy/example.yaml
Steven Hardy 6e49e15e65 Use SoftwareDeployments for consistency in extraconfig
Currently we've got a mix of SoftwareConfig resource with
StructuredDeployments resources - while this will work it's
inconsistent and normally using the corresponding
SoftwareDeployments resouce is encourgaged instead.

Change-Id: I308d62d4ff491c073e3e8650fd4c2c65bf96d14a
2015-06-18 09:13:58 -04:00

28 lines
644 B
YAML

heat_template_version: 2014-10-16
description: >
Example extra config for post-deployment
# Note extra parameters can be defined, then passed data via the
# environment parameter_defaults, without modifying the parent template
parameters:
servers:
type: json
resources:
ExtraConfig:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/sh
echo "extra" > /root/extra
ExtraDeployments:
type: OS::Heat::SoftwareDeployments
properties:
servers: {get_param: servers}
config: {get_resource: ExtraConfig}
actions: ['CREATE'] # Only do this on CREATE