Merge "Remove tenant_id from nova v2.1 endpoint"
[apex-tripleo-heat-templates.git] / puppet / swift-devices-and-proxy-config.yaml
1 heat_template_version: 2015-04-30
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   controller_swift_proxy_memcaches:
10     type: comma_delimited_list
11
12 resources:
13
14   SwiftDevicesAndProxyConfigImpl:
15     type: OS::Heat::StructuredConfig
16     properties:
17       group: os-apply-config
18       config:
19         hiera:
20           datafiles:
21             swift_devices_and_proxy:
22               mapped_data:
23                 tripleo::ringbuilder::devices:
24                   list_join:
25                   - ", "
26                   - - list_join:
27                       - ", "
28                       - {get_param: controller_swift_devices}
29                     - list_join:
30                       - ", "
31                       - {get_param: object_store_swift_devices}
32                 swift::proxy::cache::memcache_servers:
33                   str_replace:
34                     template: "['SERVERS_LIST']"
35                     params:
36                       SERVERS_LIST:
37                         list_join:
38                         - "','"
39                         - {get_param: controller_swift_proxy_memcaches}
40
41 outputs:
42   config_id:
43     description: The ID of the SwiftDevicesAndProxyConfigImpl resource.
44     value:
45       {get_resource: SwiftDevicesAndProxyConfigImpl}