Merge "Support arbitrary attributes for the Ceph pools"
[apex-tripleo-heat-templates.git] / puppet / services / sahara-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Sahara base service. Shared for all Sahara services.
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   RabbitPassword:
13     description: The password for RabbitMQ
14     type: string
15     hidden: true
16   RabbitUserName:
17     default: guest
18     description: The username for RabbitMQ
19     type: string
20   RabbitClientUseSSL:
21     default: false
22     description: >
23         Rabbit client subscriber parameter to specify
24         an SSL connection to the RabbitMQ host.
25     type: string
26   RabbitClientPort:
27     default: 5672
28     description: Set rabbit subscriber port, change this if using SSL
29     type: number
30   SaharaPassword:
31     description: The password for the sahara service account, used by sahara-api.
32     type: string
33     hidden: true
34   Debug:
35     type: string
36     default: ''
37     description: Set to True to enable debugging on all services.
38
39 outputs:
40   role_data:
41     description: Role data for the Sahara base service.
42     value:
43       service_name: sahara_base
44       config_settings:
45         sahara::database_connection:
46           list_join:
47             - ''
48             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
49               - '://sahara:'
50               - {get_param: SaharaPassword}
51               - '@'
52               - {get_param: [EndpointMap, MysqlInternal, host]}
53               - '/sahara'
54         sahara::db::mysql::password: {get_param: SaharaPassword}
55         sahara::db::mysql::user: sahara
56         sahara::db::mysql::host: {get_param: [EndpointMap, MysqlNoBracketsInternal, host]}
57         sahara::db::mysql::dbname: sahara
58         sahara::db::mysql::allowed_hosts:
59           - '%'
60           - "%{hiera('mysql_bind_host')}"
61         sahara::rabbit_password: {get_param: RabbitPassword}
62         sahara::rabbit_user: {get_param: RabbitUserName}
63         sahara::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
64         sahara::rabbit_port: {get_param: RabbitClientPort}
65         sahara::debug: {get_param: Debug}
66         sahara::admin_password: {get_param: SaharaPassword}
67         sahara::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
68         sahara::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
69         sahara::use_neutron: true
70         sahara::plugins:
71           - cdh
72           - hdp
73           - mapr
74           - vanilla
75           - spark
76           - storm
77         sahara::rpc_backend: rabbit
78         sahara::admin_tenant_name: 'service'
79         sahara::keystone::auth::tenant: 'service'
80         sahara::db::database_db_max_retries: -1
81         sahara::db::database_max_retries: -1