Merge "Enable splay for os-collect-config"
[apex-tripleo-heat-templates.git] / puppet / services / manila-api.yaml
1 heat_template_version: ocata
2
3 description: >
4   Manila-api 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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   ManilaPassword:
30     description: The password for the manila service account.
31     type: string
32     hidden: true
33   KeystoneRegion:
34     type: string
35     default: 'regionOne'
36     description: Keystone region for endpoint
37   MonitoringSubscriptionManilaApi:
38     default: 'overcloud-manila-api'
39     type: string
40
41 resources:
42   ManilaBase:
43     type: ./manila-base.yaml
44     properties:
45       ServiceNetMap: {get_param: ServiceNetMap}
46       DefaultPasswords: {get_param: DefaultPasswords}
47       EndpointMap: {get_param: EndpointMap}
48       RoleName: {get_param: RoleName}
49       RoleParameters: {get_param: RoleParameters}
50
51 outputs:
52   role_data:
53     description: Role data for the Manila-api role.
54     value:
55       service_name: manila_api
56       monitoring_subscription: {get_param: MonitoringSubscriptionManilaApi}
57       config_settings:
58         map_merge:
59           - get_attr: [ManilaBase, role_data, config_settings]
60           - manila::keystone::authtoken::password: {get_param: ManilaPassword}
61             manila::keystone::authtoken::auth_uri: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
62             manila::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
63             manila::keystone::authtoken::project_name: 'service'
64             manila::keystone::authtoken::user_domain_name: 'Default'
65             manila::keystone::authtoken::project_domain_name: 'Default'
66             tripleo.manila_api.firewall_rules:
67               '150 manila':
68                 dport:
69                   - 8786
70                   - 13786
71             # NOTE: bind IP is found in Heat replacing the network name with the
72             # local node IP for the given network; replacement examples
73             # (eg. for internal_api):
74             # internal_api -> IP
75             # internal_api_uri -> [IP]
76             # internal_api_subnet - > IP/CIDR
77             manila::api::bind_host: {get_param: [ServiceNetMap, ManilaApiNetwork]}
78             manila::api::enable_proxy_headers_parsing: true
79             manila::api::default_share_type: 'default'
80       step_config: |
81         include ::tripleo::profile::base::manila::api
82       service_config_settings:
83         map_merge:
84           - get_attr: [ManilaBase, role_data, service_config_settings]
85           - keystone:
86               manila::keystone::auth::tenant: 'service'
87               manila::keystone::auth::public_url: {get_param: [EndpointMap, ManilaV1Public, uri]}
88               manila::keystone::auth::internal_url: {get_param: [EndpointMap, ManilaV1Internal, uri]}
89               manila::keystone::auth::admin_url: {get_param: [EndpointMap, ManilaV1Admin, uri]}
90               manila::keystone::auth::public_url_v2: {get_param: [EndpointMap, ManilaPublic, uri]}
91               manila::keystone::auth::internal_url_v2: {get_param: [EndpointMap, ManilaInternal, uri]}
92               manila::keystone::auth::admin_url_v2: {get_param: [EndpointMap, ManilaAdmin, uri]}
93               manila::keystone::auth::password: {get_param: ManilaPassword}
94               manila::keystone::auth::region: {get_param: KeystoneRegion}