Merge "Make the DB URIs host-independent for all services"
[apex-tripleo-heat-templates.git] / puppet / services / manila-base.yaml
1 heat_template_version: ocata
2
3 description: >
4   Openstack Manila base service. Shared by manila-api/scheduler/share 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   Debug:
22     default: ''
23     description: Set to True to enable debugging on all services.
24     type: string
25   RabbitPassword:
26     description: The password for RabbitMQ
27     type: string
28     hidden: true
29   RabbitUserName:
30     default: guest
31     description: The username for RabbitMQ
32     type: string
33   RabbitClientUseSSL:
34     default: false
35     description: >
36         Rabbit client subscriber parameter to specify
37         an SSL connection to the RabbitMQ host.
38     type: string
39   RabbitClientPort:
40     default: 5672
41     description: Set rabbit subscriber port, change this if using SSL
42     type: number
43   ManilaPassword:
44     description: The password for the manila service account.
45     type: string
46     hidden: true
47
48 outputs:
49   role_data:
50     description: Role data for the Manila Base service.
51     value:
52       service_name: manila_base
53       config_settings:
54         manila::rabbit_userid: {get_param: RabbitUserName}
55         manila::rabbit_password: {get_param: RabbitPassword}
56         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
57         manila::rabbit_port: {get_param: RabbitClientPort}
58         manila::debug: {get_param: Debug}
59         manila::db::database_db_max_retries: -1
60         manila::db::database_max_retries: -1
61         manila::sql_connection:
62           list_join:
63           - ''
64           - - {get_param: [EndpointMap, MysqlInternal, protocol]}
65             - '://manila:'
66             - {get_param: ManilaPassword}
67             - '@'
68             - {get_param: [EndpointMap, MysqlInternal, host]}
69             - '/manila'
70             - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
71       service_config_settings:
72         mysql:
73           manila::db::mysql::password: {get_param: ManilaPassword}
74           manila::db::mysql::user: manila
75           manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
76           manila::db::mysql::dbname: manila
77           manila::db::mysql::allowed_hosts:
78             - '%'
79             - "%{hiera('mysql_bind_host')}"