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