1 heat_template_version: pike
4 OpenStack containerized swift proxy service
9 default: 'tripleoupstream'
11 DockerSwiftProxyImage:
13 default: 'centos-binary-swift-proxy-server:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
33 type: ./containers-common.yaml
36 type: ../../puppet/services/swift-proxy.yaml
38 EndpointMap: {get_param: EndpointMap}
39 ServiceNetMap: {get_param: ServiceNetMap}
40 DefaultPasswords: {get_param: DefaultPasswords}
44 description: Role data for the swift proxy.
46 service_name: {get_attr: [SwiftProxyBase, role_data, service_name]}
47 config_settings: {get_attr: [SwiftProxyBase, role_data, config_settings]}
48 step_config: &step_config
49 get_attr: [SwiftProxyBase, role_data, step_config]
50 service_config_settings: {get_attr: [SwiftProxyBase, role_data, service_config_settings]}
51 # BEGIN DOCKER SETTINGS
54 puppet_tags: swift_proxy_config
55 step_config: *step_config
56 config_image: &swift_proxy_image
59 - [ {get_param: DockerNamespace}, {get_param: DockerSwiftProxyImage} ]
61 /var/lib/kolla/config_files/swift_proxy.json:
62 command: /usr/bin/swift-proxy-server /etc/swift/proxy-server.conf
66 image: *swift_proxy_image
72 - {get_attr: [ContainersCommon, volumes]}
74 - /var/lib/kolla/config_files/swift_proxy.json:/var/lib/kolla/config_files/config.json:ro
75 # FIXME I'm mounting /etc/swift as rw. Are the rings written to
76 # at all during runtime?
77 - /var/lib/config-data/swift/etc/swift:/etc/swift:rw
82 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
84 - name: create /srv/node
89 - name: Stop and disable swift_proxy service
91 service: name=openstack-swift-proxy state=stopped enabled=no