diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-04-29 18:57:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-04-29 18:57:02 +0000 |
commit | 630fef16a584b130e4aea03b0909ac54ab537ac0 (patch) | |
tree | e651794d029007d220a66b5c56f4548d84786f16 /extraconfig | |
parent | d3ad26e0ecf6634d0437235abd89f9f0d282d020 (diff) | |
parent | b8b5ca12be0de95ee2e52994f705f06722071f18 (diff) |
Merge "Add hooks for extra post-deployment config"
Diffstat (limited to 'extraconfig')
-rw-r--r-- | extraconfig/post_deploy/default.yaml | 5 | ||||
-rw-r--r-- | extraconfig/post_deploy/example.yaml | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/extraconfig/post_deploy/default.yaml b/extraconfig/post_deploy/default.yaml new file mode 100644 index 00000000..ddfe0243 --- /dev/null +++ b/extraconfig/post_deploy/default.yaml @@ -0,0 +1,5 @@ +heat_template_version: 2014-10-16 +description: 'Extra Post Deployment Config' +parameters: + servers: + type: json diff --git a/extraconfig/post_deploy/example.yaml b/extraconfig/post_deploy/example.yaml new file mode 100644 index 00000000..6b816d40 --- /dev/null +++ b/extraconfig/post_deploy/example.yaml @@ -0,0 +1,27 @@ +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::StructuredDeployments + properties: + servers: {get_param: servers} + config: {get_resource: ExtraConfig} + actions: ['CREATE'] # Only do this on CREATE |