Merge "Containerize HAProxy for the non-ha case"
[apex-tripleo-heat-templates.git] / puppet / services / sahara-base.yaml
1 heat_template_version: pike
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   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   RabbitPassword:
30     description: The password for RabbitMQ
31     type: string
32     hidden: true
33   RabbitUserName:
34     default: guest
35     description: The username for RabbitMQ
36     type: string
37   RabbitClientUseSSL:
38     default: false
39     description: >
40         Rabbit client subscriber parameter to specify
41         an SSL connection to the RabbitMQ host.
42     type: string
43   RabbitClientPort:
44     default: 5672
45     description: Set rabbit subscriber port, change this if using SSL
46     type: number
47   SaharaPassword:
48     description: The password for the sahara service account, used by sahara-api.
49     type: string
50     hidden: true
51   Debug:
52     type: string
53     default: ''
54     description: Set to True to enable debugging on all services.
55   SaharaPlugins:
56     default: ["ambari","cdh","mapr","vanilla","spark","storm"]
57     description: Sahara enabled plugin list
58     type: comma_delimited_list
59
60 outputs:
61   role_data:
62     description: Role data for the Sahara base service.
63     value:
64       service_name: sahara_base
65       config_settings:
66         sahara::database_connection:
67           make_url:
68             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
69             username: sahara
70             password: {get_param: SaharaPassword}
71             host: {get_param: [EndpointMap, MysqlInternal, host]}
72             path: /sahara
73             query:
74               read_default_file: /etc/my.cnf.d/tripleo.cnf
75               read_default_group: tripleo
76         sahara::rabbit_password: {get_param: RabbitPassword}
77         sahara::rabbit_user: {get_param: RabbitUserName}
78         sahara::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
79         sahara::rabbit_port: {get_param: RabbitClientPort}
80         sahara::debug: {get_param: Debug}
81         # Remove admin_password when https://review.openstack.org/442619 is merged.
82         sahara::admin_password: {get_param: SaharaPassword}
83         sahara::use_neutron: true
84         sahara::plugins: {get_param: SaharaPlugins}
85         sahara::rpc_backend: rabbit
86         sahara::db::database_db_max_retries: -1
87         sahara::db::database_max_retries: -1
88         sahara::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
89         sahara::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
90         sahara::keystone::authtoken::password: {get_param: SaharaPassword}
91         sahara::keystone::authtoken::project_name: 'service'