Merge "Ironic: service catalog entries should not have a suffix"
[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 resources:
43   SwiftBase:
44     type: ./swift-base.yaml
45     properties:
46       ServiceNetMap: {get_param: ServiceNetMap}
47       DefaultPasswords: {get_param: DefaultPasswords}
48       EndpointMap: {get_param: EndpointMap}
49
50 outputs:
51   role_data:
52     description: Role data for the Swift proxy service.
53     value:
54       service_name: swift_proxy
55       config_settings:
56         map_merge:
57           - get_attr: [SwiftBase, role_data, config_settings]
58
59           - swift::proxy::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
60             swift::proxy::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
61             swift::proxy::authtoken::password: {get_param: SwiftPassword}
62             swift::proxy::authtoken::project_name: 'service'
63             swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
64             swift::proxy::workers: {get_param: SwiftWorkers}
65             swift::keystone::auth::public_url: {get_param: [EndpointMap, SwiftPublic, uri]}
66             swift::keystone::auth::internal_url: {get_param: [EndpointMap, SwiftInternal, uri]}
67             swift::keystone::auth::admin_url: {get_param: [EndpointMap, SwiftAdmin, uri]}
68             swift::keystone::auth::public_url_s3: {get_param: [EndpointMap, SwiftS3Public, uri]}
69             swift::keystone::auth::internal_url_s3: {get_param: [EndpointMap, SwiftS3Internal, uri]}
70             swift::keystone::auth::admin_url_s3: {get_param: [EndpointMap, SwiftS3Admin, uri]}
71             swift::keystone::auth::password: {get_param: SwiftPassword}
72             swift::keystone::auth::region: {get_param: KeystoneRegion}
73             tripleo.swift_proxy.firewall_rules:
74               '122 swift proxy':
75                 dport:
76                   - 8080
77                   - 13808
78             swift::keystone::auth::tenant: 'service'
79             swift::keystone::auth::configure_s3_endpoint: false
80             swift::keystone::auth::operator_roles:
81               - admin
82               - swiftoperator
83               - ResellerAdmin
84             swift::proxy::keystone::operator_roles:
85               - admin
86               - swiftoperator
87               - ResellerAdmin
88             swift::proxy::pipeline:
89               - 'catch_errors'
90               - 'healthcheck'
91               - 'proxy-logging'
92               - 'cache'
93               - 'ratelimit'
94               - 'bulk'
95               - 'tempurl'
96               - 'formpost'
97               - 'authtoken'
98               - 'keystone'
99               - 'staticweb'
100               - 'proxy-logging'
101               - 'proxy-server'
102             swift::proxy::account_autocreate: true
103             # NOTE: bind IP is found in Heat replacing the network name with the
104             # local node IP for the given network; replacement examples
105             # (eg. for internal_api):
106             # internal_api -> IP
107             # internal_api_uri -> [IP]
108             # internal_api_subnet - > IP/CIDR
109             swift::proxy::proxy_local_net_ip: {get_param: [ServiceNetMap, SwiftProxyNetwork]}
110       step_config: |
111         include ::tripleo::profile::base::swift::proxy