a847cc9376386c66402322a57c8277a22eb9b8aa
[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   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   EndpointMap:
22     default: {}
23     description: Mapping of service endpoint -> protocol. Typically set
24                  via parameter_defaults in the resource registry.
25     type: json
26   RabbitClientPort:
27     default: 5672
28     description: Set rabbit subscriber port, change this if using SSL
29     type: number
30   RabbitClientUseSSL:
31     default: false
32     description: >
33         Rabbit client subscriber parameter to specify
34         an SSL connection to the RabbitMQ host.
35     type: string
36   RabbitPassword:
37     description: The password for RabbitMQ
38     type: string
39     hidden: true
40   RabbitUserName:
41     default: guest
42     description: The username for RabbitMQ
43     type: string
44
45 outputs:
46   role_data:
47     description: Role data for the Cinder base service.
48     value:
49       service_name: cinder_base
50       config_settings:
51         cinder::database_connection:
52           list_join:
53             - ''
54             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
55               - '://cinder:'
56               - {get_param: CinderPassword}
57               - '@'
58               - {get_param: [EndpointMap, MysqlInternal, host]}
59               - '/cinder'
60         cinder::db::mysql::password: {get_param: CinderPassword}
61         cinder::debug: {get_param: Debug}
62         cinder::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
63         cinder::rabbit_userid: {get_param: RabbitUserName}
64         cinder::rabbit_password: {get_param: RabbitPassword}
65         cinder::rabbit_port: {get_param: RabbitClientPort}
66         cinder::db::mysql::user: cinder
67         cinder::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
68         cinder::db::mysql::dbname: cinder
69         cinder::db::mysql::allowed_hosts:
70           - '%'
71           - "%{hiera('mysql_bind_host')}"
72         cinder::rabbit_heartbeat_timeout_threshold: 60
73         cinder::host: hostgroup
74         cinder::cron::db_purge::destination: '/dev/null'
75         cinder::db::database_db_max_retries: -1
76         cinder::db::database_max_retries: -1