1 heat_template_version: pike
4 OpenStack Swift Proxy service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
31 description: Set to True to enable debugging on all services.
34 description: The password for the swift service account, used by the swift proxy services.
37 SwiftProxyNodeTimeout:
39 description: Timeout for requests going from swift-proxy to swift a/c/o services.
43 description: Number of workers for Swift service.
48 description: Keystone region for endpoint
49 MonitoringSubscriptionSwiftProxy:
50 default: 'overcloud-swift-proxy'
53 description: The password for RabbitMQ
58 description: The username for RabbitMQ
60 SwiftCeilometerPipelineEnabled:
61 description: Set to False to disable the swift proxy ceilometer pipeline.
64 SwiftCeilometerIgnoreProjects:
66 description: Comma-seperated list of project names to ignore.
67 type: comma_delimited_list
70 description: Set rabbit subscriber port, change this if using SSL
75 Rabbit client subscriber parameter to specify
76 an SSL connection to the RabbitMQ host.
84 ceilometer_pipeline_enabled: {equals : [{get_param: SwiftCeilometerPipelineEnabled}, true]}
85 use_tls_proxy: {equals : [{get_param: EnableInternalTLS}, true]}
89 type: ./swift-base.yaml
91 ServiceNetMap: {get_param: ServiceNetMap}
92 DefaultPasswords: {get_param: DefaultPasswords}
93 EndpointMap: {get_param: EndpointMap}
94 RoleName: {get_param: RoleName}
95 RoleParameters: {get_param: RoleParameters}
98 type: OS::TripleO::Services::TLSProxyBase
100 ServiceNetMap: {get_param: ServiceNetMap}
101 DefaultPasswords: {get_param: DefaultPasswords}
102 EndpointMap: {get_param: EndpointMap}
103 EnableInternalTLS: {get_param: EnableInternalTLS}
107 description: Role data for the Swift proxy service.
109 service_name: swift_proxy
110 monitoring_subscription: {get_param: MonitoringSubscriptionSwiftProxy}
113 - get_attr: [SwiftBase, role_data, config_settings]
114 - get_attr: [TLSProxyBase, role_data, config_settings]
115 - swift::proxy::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
116 swift::proxy::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
117 swift::proxy::authtoken::password: {get_param: SwiftPassword}
118 swift::proxy::authtoken::project_name: 'service'
119 swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
120 swift::proxy::workers: {get_param: SwiftWorkers}
123 - ceilometer_pipeline_enabled
125 swift::proxy::ceilometer::rabbit_user: {get_param: RabbitUserName}
126 swift::proxy::ceilometer::rabbit_password: {get_param: RabbitPassword}
127 swift::proxy::ceilometer::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
128 swift::proxy::ceilometer::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
129 swift::proxy::ceilometer::password: {get_param: SwiftPassword}
130 swift::proxy::ceilometer::ignore_projects: {get_param: SwiftCeilometerIgnoreProjects}
131 swift::proxy::ceilometer::nonblocking_notify: true
132 swift::proxy::ceilometer::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
134 - swift::proxy::staticweb::url_base: {get_param: [EndpointMap, SwiftPublic, uri_no_suffix]}
135 tripleo::profile::base::swift::proxy::rabbit_port: {get_param: RabbitClientPort}
136 tripleo::profile::base::swift::proxy::ceilometer_messaging_use_ssl: {get_param: RabbitClientUseSSL}
137 tripleo::profile::base::swift::proxy::ceilometer_enabled: {get_param: SwiftCeilometerPipelineEnabled}
138 tripleo.swift_proxy.firewall_rules:
143 swift::proxy::keystone::operator_roles:
147 swift::proxy::versioned_writes::allow_versioned_writes: true
148 swift::proxy::pipeline:
150 expression: $.data.pipeline.where($ != '')
172 - ceilometer_pipeline_enabled
177 swift::proxy::account_autocreate: true
178 # NOTE: bind IP is found in Heat replacing the network name with the
179 # local node IP for the given network; replacement examples
180 # (eg. for internal_api):
182 # internal_api_uri -> [IP]
183 # internal_api_subnet - > IP/CIDR
184 tripleo::profile::base::swift::proxy::tls_proxy_bind_ip:
185 get_param: [ServiceNetMap, SwiftProxyNetwork]
186 tripleo::profile::base::swift::proxy::tls_proxy_fqdn:
189 "%{hiera('fqdn_$NETWORK')}"
191 $NETWORK: {get_param: [ServiceNetMap, SwiftProxyNetwork]}
192 tripleo::profile::base::swift::proxy::tls_proxy_port:
193 get_param: [EndpointMap, SwiftInternal, port]
194 swift::proxy::port: {get_param: [EndpointMap, SwiftInternal, port]}
195 swift::proxy::proxy_local_net_ip:
199 - {get_param: [ServiceNetMap, SwiftProxyNetwork]}
201 include ::tripleo::profile::base::swift::proxy
202 service_config_settings:
204 swift::keystone::auth::public_url: {get_param: [EndpointMap, SwiftPublic, uri]}
205 swift::keystone::auth::internal_url: {get_param: [EndpointMap, SwiftInternal, uri]}
206 swift::keystone::auth::admin_url: {get_param: [EndpointMap, SwiftAdmin, uri]}
207 swift::keystone::auth::public_url_s3: {get_param: [EndpointMap, SwiftS3Public, uri]}
208 swift::keystone::auth::internal_url_s3: {get_param: [EndpointMap, SwiftS3Internal, uri]}
209 swift::keystone::auth::admin_url_s3: {get_param: [EndpointMap, SwiftS3Admin, uri]}
210 swift::keystone::auth::password: {get_param: SwiftPassword}
211 swift::keystone::auth::region: {get_param: KeystoneRegion}
212 swift::keystone::auth::tenant: 'service'
213 swift::keystone::auth::configure_s3_endpoint: false
214 swift::keystone::auth::operator_roles:
219 - name: Stop swift_proxy service
221 service: name=openstack-swift-proxy state=stopped
223 get_attr: [TLSProxyBase, role_data, metadata_settings]