1 heat_template_version: pike
4 OpenStack containerized swift proxy service
10 DockerSwiftConfigImage:
11 description: The container image to use for the swift config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
41 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
46 type: ./containers-common.yaml
49 type: ../../puppet/services/swift-proxy.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Role data for the swift proxy.
61 service_name: {get_attr: [SwiftProxyBase, role_data, service_name]}
62 config_settings: {get_attr: [SwiftProxyBase, role_data, config_settings]}
63 step_config: &step_config
64 get_attr: [SwiftProxyBase, role_data, step_config]
65 service_config_settings: {get_attr: [SwiftProxyBase, role_data, service_config_settings]}
66 # BEGIN DOCKER SETTINGS
69 puppet_tags: swift_proxy_config
70 step_config: *step_config
71 config_image: {get_param: DockerSwiftConfigImage}
73 /var/lib/kolla/config_files/swift_proxy.json:
74 command: /usr/bin/swift-proxy-server /etc/swift/proxy-server.conf
76 - source: "/var/lib/kolla/config_files/src/*"
79 preserve_properties: true
81 - path: /var/log/swift
84 /var/lib/kolla/config_files/swift_proxy_tls_proxy.json:
85 command: /usr/sbin/httpd -DFOREGROUND
87 - source: "/var/lib/kolla/config_files/src/*"
90 preserve_properties: true
95 image: &swift_proxy_image {get_param: DockerSwiftProxyImage}
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/swift_proxy.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/swift/:/var/lib/kolla/config_files/src:ro
106 - /srv/node:/srv/node
108 - /var/log/containers/swift:/var/log/swift
110 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
112 - internal_tls_enabled
113 - swift_proxy_tls_proxy:
114 image: *swift_proxy_image
120 - {get_attr: [ContainersCommon, volumes]}
122 - /var/lib/kolla/config_files/swift_proxy_tls_proxy.json:/var/lib/kolla/config_files/config.json:ro
123 - /var/lib/config-data/puppet-generated/swift/:/var/lib/kolla/config_files/src:ro
124 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
125 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
127 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
130 - name: create persistent directories
135 - /var/log/containers/swift
138 - name: Stop and disable swift_proxy service
140 service: name=openstack-swift-proxy state=stopped enabled=no
142 get_attr: [SwiftProxyBase, role_data, metadata_settings]