aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/swift-proxy.yaml
blob: 3ae1b01e0e0a91d951ebcbad1229460d0d27bdea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
heat_template_version: 2016-04-08

description: >
  OpenStack Swift Proxy service configured with Puppet

parameters:
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  Debug:
    default: ''
    description: Set to True to enable debugging on all services.
    type: string
  SwiftPassword:
    description: The password for the swift service account, used by the swift proxy services.
    type: string
    hidden: true
  SwiftProxyNodeTimeout:
    default: 60
    description: Timeout for requests going from swift-proxy to swift a/c/o services.
    type: number
  SwiftWorkers:
    default: 0
    description: Number of workers for Swift service.
    type: number
  KeystoneRegion:
    type: string
    default: 'regionOne'
    description: Keystone region for endpoint


outputs:
  role_data:
    description: Role data for the Swift proxy service.
    value:
      service_name: swift-proxy
      config_settings:
        # Swift
        swift::proxy::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
        swift::proxy::authtoken::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
        swift::proxy::authtoken::admin_password: {get_param: SwiftPassword}
        swift::proxy::node_timeout: {get_param: SwiftProxyNodeTimeout}
        swift::proxy::workers: {get_param: SwiftWorkers}
        swift::keystone::auth::public_url: {get_param: [EndpointMap, SwiftPublic, uri]}
        swift::keystone::auth::internal_url: {get_param: [EndpointMap, SwiftInternal, uri]}
        swift::keystone::auth::admin_url: {get_param: [EndpointMap, SwiftAdmin, uri]}
        swift::keystone::auth::public_url_s3: {get_param: [EndpointMap, SwiftS3Public, uri]}
        swift::keystone::auth::internal_url_s3: {get_param: [EndpointMap, SwiftS3Internal, uri]}
        swift::keystone::auth::admin_url_s3: {get_param: [EndpointMap, SwiftS3Admin, uri]}
        swift::keystone::auth::password: {get_param: SwiftPassword}
        swift::keystone::auth::region: {get_param: KeystoneRegion}
      step_config: |
        include ::tripleo::profile::base::swift::proxy