diff options
author | Steven Hardy <shardy@redhat.com> | 2015-04-09 14:28:10 +0100 |
---|---|---|
committer | Steven Hardy <shardy@redhat.com> | 2015-04-24 10:19:04 +0100 |
commit | b8b5ca12be0de95ee2e52994f705f06722071f18 (patch) | |
tree | 1e3bfd3b8d68ca4404ebebfbf159b90f3c018551 /extraconfig/post_deploy | |
parent | 723db1317cd62a8772c764847c80a339eae4c03f (diff) |
Add hooks for extra post-deployment config
Adds optional hooks which can run operator defined additional config on
nodes after the application deployment has completed.
Change-Id: I3f99e648efad82ce2cd51e2d5168c716f0cee8fe
Diffstat (limited to 'extraconfig/post_deploy')
-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 |