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