d17f78ae5f5fac3048294b1262dce8290fed197c
[apex-tripleo-heat-templates.git] / extraconfig / tasks / swift-ring-deploy.yaml
1 heat_template_version: ocata
2
3 parameters:
4   servers:
5     type: json
6   SwiftRingGetTempurl:
7     default: ''
8     description: A temporary Swift URL to download rings from.
9     type: string
10
11 resources:
12   SwiftRingDeployConfig:
13     type: OS::Heat::SoftwareConfig
14     properties:
15       group: script
16       inputs:
17         - name: swift_ring_get_tempurl
18       config: |
19         #!/bin/sh
20         pushd /
21         curl --insecure --silent "${swift_ring_get_tempurl}" | tar xz || true
22         popd
23
24   SwiftRingDeploy:
25     type: OS::Heat::SoftwareDeployments
26     properties:
27       name: SwiftRingDeploy
28       config: {get_resource: SwiftRingDeployConfig}
29       servers:  {get_param: servers}
30       input_values:
31         swift_ring_get_tempurl: {get_param: SwiftRingGetTempurl}