From b8b5ca12be0de95ee2e52994f705f06722071f18 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Thu, 9 Apr 2015 14:28:10 +0100 Subject: 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 --- extraconfig/post_deploy/default.yaml | 5 +++++ extraconfig/post_deploy/example.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 extraconfig/post_deploy/default.yaml create mode 100644 extraconfig/post_deploy/example.yaml (limited to 'extraconfig/post_deploy') 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 -- cgit 1.2.3-korg