99af749937ed4448549314c91c93aeef3290e54a
[apex-tripleo-heat-templates.git] / puppet / services / swift-proxy.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Swift Proxy service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   Debug:
13     default: ''
14     description: Set to True to enable debugging on all services.
15     type: string
16   SwiftPassword:
17     description: The password for the swift service account, used by the swift proxy services.
18     type: string
19     hidden: true
20   SwiftProxyNodeTimeout:
21     default: 60
22     description: Timeout for requests going from swift-proxy to swift a/c/o services.
23     type: number
24   SwiftWorkers:
25     default: 0
26     description: Number of workers for Swift service.
27     type: number
28   KeystoneRegion:
29     type: string
30     default: 'regionOne'
31     description: Keystone region for endpoint
32
33
34 outputs:
35   role_data:
36     description: Role data for the Swift proxy service.
37     value:
38       service_name: swift_proxy
39       config_settings:
40         # Swift
41         swift::proxy::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
42         swift::proxy::authtoken::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
43         swift::proxy::authtoken::admin_password: {get_param: SwiftPassword}
44         swift::proxy::authtoken::admin_tenant_name: 'service'
45         swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
46         swift::proxy::workers: {get_param: SwiftWorkers}
47         swift::keystone::auth::public_url: {get_param: [EndpointMap, SwiftPublic, uri]}
48         swift::keystone::auth::internal_url: {get_param: [EndpointMap, SwiftInternal, uri]}
49         swift::keystone::auth::admin_url: {get_param: [EndpointMap, SwiftAdmin, uri]}
50         swift::keystone::auth::public_url_s3: {get_param: [EndpointMap, SwiftS3Public, uri]}
51         swift::keystone::auth::internal_url_s3: {get_param: [EndpointMap, SwiftS3Internal, uri]}
52         swift::keystone::auth::admin_url_s3: {get_param: [EndpointMap, SwiftS3Admin, uri]}
53         swift::keystone::auth::password: {get_param: SwiftPassword}
54         swift::keystone::auth::region: {get_param: KeystoneRegion}
55         tripleo.swift_proxy.firewall_rules:
56           '122 swift proxy':
57             dport:
58               - 8080
59               - 13808
60         swift::keystone::auth::tenant: 'service'
61         swift::keystone::auth::configure_s3_endpoint: false
62         swift::keystone::auth::operator_roles:
63           - admin
64           - swiftoperator
65           - ResellerAdmin
66         swift::proxy::keystone::operator_roles:
67           - admin
68           - swiftoperator
69           - ResellerAdmin
70         swift::proxy::pipeline:
71           - 'catch_errors'
72           - 'healthcheck'
73           - 'proxy-logging'
74           - 'cache'
75           - 'ratelimit'
76           - 'bulk'
77           - 'tempurl'
78           - 'formpost'
79           - 'authtoken'
80           - 'keystone'
81           - 'staticweb'
82           - 'proxy-logging'
83           - 'proxy-server'
84         swift::proxy::account_autocreate: true
85       step_config: |
86         include ::tripleo::profile::base::swift::proxy