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