diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-17 01:21:21 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-17 01:21:21 +0000 |
commit | 0951a579fee76f2380628d9da417223673c1cf25 (patch) | |
tree | 5370637e9bd8ac96e9e65a7a5a0f83261512eec1 /extraconfig/tasks/swift-ring-deploy.yaml | |
parent | 71bac87cffcfc69f8b99babca39e34a9dc6e4588 (diff) | |
parent | b323f8a16035549d84cdec4718380bde3d23d6c3 (diff) |
Merge "Automatically backup and restore Swift rings from the undercloud"
Diffstat (limited to 'extraconfig/tasks/swift-ring-deploy.yaml')
-rw-r--r-- | extraconfig/tasks/swift-ring-deploy.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/extraconfig/tasks/swift-ring-deploy.yaml b/extraconfig/tasks/swift-ring-deploy.yaml new file mode 100644 index 00000000..d17f78ae --- /dev/null +++ b/extraconfig/tasks/swift-ring-deploy.yaml @@ -0,0 +1,31 @@ +heat_template_version: ocata + +parameters: + servers: + type: json + SwiftRingGetTempurl: + default: '' + description: A temporary Swift URL to download rings from. + type: string + +resources: + SwiftRingDeployConfig: + type: OS::Heat::SoftwareConfig + properties: + group: script + inputs: + - name: swift_ring_get_tempurl + config: | + #!/bin/sh + pushd / + curl --insecure --silent "${swift_ring_get_tempurl}" | tar xz || true + popd + + SwiftRingDeploy: + type: OS::Heat::SoftwareDeployments + properties: + name: SwiftRingDeploy + config: {get_resource: SwiftRingDeployConfig} + servers: {get_param: servers} + input_values: + swift_ring_get_tempurl: {get_param: SwiftRingGetTempurl} |