Merge "Revert "Adjust MTU to compensate for VLAN tag issue""
[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   MonitoringSubscriptionSwiftProxy:
42     default: 'overcloud-swift-proxy'
43     type: string
44   RabbitPassword:
45     description: The password for RabbitMQ
46     type: string
47     hidden: true
48   RabbitUserName:
49     default: guest
50     description: The username for RabbitMQ
51     type: string
52
53 resources:
54   SwiftBase:
55     type: ./swift-base.yaml
56     properties:
57       ServiceNetMap: {get_param: ServiceNetMap}
58       DefaultPasswords: {get_param: DefaultPasswords}
59       EndpointMap: {get_param: EndpointMap}
60
61 outputs:
62   role_data:
63     description: Role data for the Swift proxy service.
64     value:
65       service_name: swift_proxy
66       monitoring_subscription: {get_param: MonitoringSubscriptionSwiftProxy}
67       config_settings:
68         map_merge:
69           - get_attr: [SwiftBase, role_data, config_settings]
70
71           - swift::proxy::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
72             swift::proxy::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
73             swift::proxy::authtoken::password: {get_param: SwiftPassword}
74             swift::proxy::authtoken::project_name: 'service'
75             swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
76             swift::proxy::workers: {get_param: SwiftWorkers}
77             swift::proxy::ceilometer::rabbit_user: {get_param: RabbitUserName}
78             swift::proxy::ceilometer::rabbit_password: {get_param: RabbitPassword}
79             swift::proxy::staticweb::url_base: {get_param: [EndpointMap, SwiftPublic, uri_no_suffix]}
80             tripleo.swift_proxy.firewall_rules:
81               '122 swift proxy':
82                 dport:
83                   - 8080
84                   - 13808
85             swift::proxy::keystone::operator_roles:
86               - admin
87               - swiftoperator
88               - ResellerAdmin
89             swift::proxy::versioned_writes::allow_versioned_writes: true
90             swift::proxy::pipeline:
91               - 'catch_errors'
92               - 'healthcheck'
93               - 'proxy-logging'
94               - 'cache'
95               - 'ratelimit'
96               - 'bulk'
97               - 'tempurl'
98               - 'formpost'
99               - 'authtoken'
100               - 'keystone'
101               - 'staticweb'
102               - 'versioned_writes'
103               - 'ceilometer'
104               - 'proxy-logging'
105               - 'proxy-server'
106             swift::proxy::account_autocreate: true
107             # NOTE: bind IP is found in Heat replacing the network name with the
108             # local node IP for the given network; replacement examples
109             # (eg. for internal_api):
110             # internal_api -> IP
111             # internal_api_uri -> [IP]
112             # internal_api_subnet - > IP/CIDR
113             swift::proxy::proxy_local_net_ip: {get_param: [ServiceNetMap, SwiftProxyNetwork]}
114       step_config: |
115         include ::tripleo::profile::base::swift::proxy
116       service_config_settings:
117         keystone:
118           swift::keystone::auth::public_url: {get_param: [EndpointMap, SwiftPublic, uri]}
119           swift::keystone::auth::internal_url: {get_param: [EndpointMap, SwiftInternal, uri]}
120           swift::keystone::auth::admin_url: {get_param: [EndpointMap, SwiftAdmin, uri]}
121           swift::keystone::auth::public_url_s3: {get_param: [EndpointMap, SwiftS3Public, uri]}
122           swift::keystone::auth::internal_url_s3: {get_param: [EndpointMap, SwiftS3Internal, uri]}
123           swift::keystone::auth::admin_url_s3: {get_param: [EndpointMap, SwiftS3Admin, uri]}
124           swift::keystone::auth::password: {get_param: SwiftPassword}
125           swift::keystone::auth::region: {get_param: KeystoneRegion}
126           swift::keystone::auth::tenant: 'service'
127           swift::keystone::auth::configure_s3_endpoint: false
128           swift::keystone::auth::operator_roles:
129             - admin
130             - swiftoperator
131             - ResellerAdmin