aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/swift-devices-and-proxy-config.yaml
blob: 92ef5c1c4d67e297c1e74d63f22473e4a2e57929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
heat_template_version: 2015-04-30
description: 'Swift Devices and Proxy Config for Puppet'

parameters:
  controller_swift_devices:
    type: comma_delimited_list
  object_store_swift_devices:
    type: comma_delimited_list
  controller_swift_proxy_memcaches:
    type: comma_delimited_list

resources:

  SwiftDevicesAndProxyConfigImpl:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        hiera:
          datafiles:
            swift_devices_and_proxy:
              mapped_data:
                tripleo::ringbuilder::devices:
                  list_join:
                  - ", "
                  - - list_join:
                      - ", "
                      - {get_param: controller_swift_devices}
                    - list_join:
                      - ", "
                      - {get_param: object_store_swift_devices}
                swift::proxy::cache::memcache_servers:
                  str_replace:
                    template: "['SERVERS_LIST']"
                    params:
                      SERVERS_LIST:
                        list_join:
                        - "','"
                        - {get_param: controller_swift_proxy_memcaches}

outputs:
  config_id:
    description: The ID of the SwiftDevicesAndProxyConfigImpl resource.
    value:
      {get_resource: SwiftDevicesAndProxyConfigImpl}