Merge "Nic config mappings for deployed-server"
[apex-tripleo-heat-templates.git] / puppet / services / sahara-base.yaml
1 heat_template_version: ocata
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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   RabbitPassword:
22     description: The password for RabbitMQ
23     type: string
24     hidden: true
25   RabbitUserName:
26     default: guest
27     description: The username for RabbitMQ
28     type: string
29   RabbitClientUseSSL:
30     default: false
31     description: >
32         Rabbit client subscriber parameter to specify
33         an SSL connection to the RabbitMQ host.
34     type: string
35   RabbitClientPort:
36     default: 5672
37     description: Set rabbit subscriber port, change this if using SSL
38     type: number
39   SaharaPassword:
40     description: The password for the sahara service account, used by sahara-api.
41     type: string
42     hidden: true
43   Debug:
44     type: string
45     default: ''
46     description: Set to True to enable debugging on all services.
47   SaharaPlugins:
48     default: ["ambari","cdh","mapr","vanilla","spark","storm"]
49     description: Sahara enabled plugin list
50     type: comma_delimited_list
51
52 outputs:
53   role_data:
54     description: Role data for the Sahara base service.
55     value:
56       service_name: sahara_base
57       config_settings:
58         sahara::database_connection:
59           list_join:
60             - ''
61             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
62               - '://sahara:'
63               - {get_param: SaharaPassword}
64               - '@'
65               - {get_param: [EndpointMap, MysqlInternal, host]}
66               - '/sahara'
67               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
68         sahara::rabbit_password: {get_param: RabbitPassword}
69         sahara::rabbit_user: {get_param: RabbitUserName}
70         sahara::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
71         sahara::rabbit_port: {get_param: RabbitClientPort}
72         sahara::debug: {get_param: Debug}
73         # Remove admin_password when https://review.openstack.org/442619 is merged.
74         sahara::admin_password: {get_param: SaharaPassword}
75         sahara::use_neutron: true
76         sahara::plugins: {get_param: SaharaPlugins}
77         sahara::rpc_backend: rabbit
78         sahara::db::database_db_max_retries: -1
79         sahara::db::database_max_retries: -1
80         sahara::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
81         sahara::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
82         sahara::keystone::authtoken::password: {get_param: SaharaPassword}
83         sahara::keystone::authtoken::project_name: 'service'