Merge "puppet: tidy up the Nova glance API server config"
[apex-tripleo-heat-templates.git] / puppet / swift-devices-and-proxy-config.yaml
1 heat_template_version: 2014-10-16
2 description: 'Swift Devices and Proxy Config for Puppet'
3
4 parameters:
5   controller_swift_devices:
6     type: comma_delimited_list
7   object_store_swift_devices:
8     type: comma_delimited_list
9   # TODO: add support for puppet swift proxy memcache configuration
10   controller_swift_proxy_memcaches:
11     type: comma_delimited_list
12
13 resources:
14
15   SwiftDevicesAndProxyConfigImpl:
16     type: OS::Heat::StructuredConfig
17     properties:
18       group: os-apply-config
19       config:
20         hiera:
21           datafiles:
22             swift_devices_and_proxy:
23               mapped_data:
24                 tripleo::ringbuilder::devices:
25                   list_join:
26                   - ", "
27                   - - list_join:
28                       - ", "
29                       - {get_param: controller_swift_devices}
30                     - list_join:
31                       - ", "
32                       - {get_param: object_store_swift_devices}
33
34 outputs:
35   config_id:
36     description: The ID of the SwiftDevicesAndProxyConfigImpl resource.
37     value:
38       {get_resource: SwiftDevicesAndProxyConfigImpl}