Update the template_version alias for all the templates to pike.
[apex-tripleo-heat-templates.git] / docker / services / swift-ringbuilder.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Swift Ringbuilder
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerSwiftProxyImage:
12     description: image
13     default: 'centos-binary-swift-proxy-server:latest'
14     type: string
15   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   RoleName:
25     default: ''
26     description: Role name on which the service is applied
27     type: string
28   RoleParameters:
29     default: {}
30     description: Parameters specific to the role
31     type: json
32   EndpointMap:
33     default: {}
34     description: Mapping of service endpoint -> protocol. Typically set
35                  via parameter_defaults in the resource registry.
36     type: json
37   SwiftMinPartHours:
38     type: number
39     default: 1
40     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
41   SwiftPartPower:
42     default: 10
43     description: Partition Power to use when building Swift rings
44     type: number
45   SwiftRingBuild:
46     default: true
47     description: Whether to manage Swift rings or not
48     type: boolean
49   SwiftReplicas:
50     type: number
51     default: 3
52     description: How many replicas to use in the swift rings.
53   SwiftRawDisks:
54     default: {}
55     description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
56     type: json
57   SwiftUseLocalDir:
58     default: true
59     description: 'Use a local directory for Swift storage services when building rings'
60     type: boolean
61
62 resources:
63
64   SwiftRingbuilderBase:
65     type: ../../puppet/services/swift-ringbuilder.yaml
66     properties:
67       EndpointMap: {get_param: EndpointMap}
68       ServiceNetMap: {get_param: ServiceNetMap}
69       DefaultPasswords: {get_param: DefaultPasswords}
70       RoleName: {get_param: RoleName}
71       RoleParameters: {get_param: RoleParameters}
72
73 outputs:
74   role_data:
75     description: Role data for Swift Ringbuilder configuration in containers.
76     value:
77       service_name: {get_attr: [SwiftRingbuilderBase, role_data, service_name]}
78       config_settings: {get_attr: [SwiftRingbuilderBase, role_data, config_settings]}
79       step_config: &step_config
80         get_attr: [SwiftRingbuilderBase, role_data, step_config]
81       service_config_settings: {get_attr: [SwiftRingbuilderBase, role_data, service_config_settings]}
82       # BEGIN DOCKER SETTINGS
83       puppet_config:
84         config_volume: 'swift'
85         puppet_tags: exec,ring_object_device,swift::ringbuilder::create,tripleo::profile::base::swift::add_devices,swift::ringbuilder::rebalance
86         step_config: *step_config
87         config_image:
88           list_join:
89             - '/'
90             - [ {get_param: DockerNamespace}, {get_param: DockerSwiftProxyImage} ]
91       kolla_config: {}
92       docker_config: {}