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