Convert EndpointMap to not require per-service VIP parameters
[apex-tripleo-heat-templates.git] / puppet / services / cinder-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder base service. Shared by all Cinder services.
5
6 parameters:
7   CinderPassword:
8     description: The password for the cinder service account, used by cinder-api.
9     type: string
10     hidden: true
11   Debug:
12     default: ''
13     description: Set to True to enable debugging on all services.
14     type: string
15   EndpointMap:
16     default: {}
17     description: Mapping of service endpoint -> protocol. Typically set
18                  via parameter_defaults in the resource registry.
19     type: json
20   RabbitClientPort:
21     default: 5672
22     description: Set rabbit subscriber port, change this if using SSL
23     type: number
24   RabbitClientUseSSL:
25     default: false
26     description: >
27         Rabbit client subscriber parameter to specify
28         an SSL connection to the RabbitMQ host.
29     type: string
30   RabbitPassword:
31     description: The password for RabbitMQ
32     type: string
33     hidden: true
34   RabbitUserName:
35     default: guest
36     description: The username for RabbitMQ
37     type: string
38
39 outputs:
40   role_data:
41     description: Role data for the Cinder base service.
42     value:
43       service_name: cinder_base
44       config_settings:
45         cinder::database_connection:
46           list_join:
47             - ''
48             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
49               - '://cinder:'
50               - {get_param: CinderPassword}
51               - '@'
52               - {get_param: [EndpointMap, MysqlInternal, host]}
53               - '/cinder'
54         cinder::db::mysql::password: {get_param: CinderPassword}
55         cinder::debug: {get_param: Debug}
56         cinder::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
57         cinder::rabbit_userid: {get_param: RabbitUserName}
58         cinder::rabbit_password: {get_param: RabbitPassword}
59         cinder::rabbit_port: {get_param: RabbitClientPort}
60         cinder::db::mysql::user: cinder
61         cinder::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
62         cinder::db::mysql::dbname: cinder
63         cinder::db::mysql::allowed_hosts:
64           - '%'
65           - "%{hiera('mysql_bind_host')}"
66         cinder::rabbit_heartbeat_timeout_threshold: 60
67         cinder::host: hostgroup
68         cinder::cron::db_purge::destination: '/dev/null'
69         cinder::db::database_db_max_retries: -1
70         cinder::db::database_max_retries: -1