Merge "Ensure /etc/ssh/ssh_known_hosts exist in docker config-data."
[apex-tripleo-heat-templates.git] / puppet / services / manila-base.yaml
1 heat_template_version: pike
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   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   Debug:
30     default: ''
31     description: Set to True to enable debugging on all services.
32     type: string
33   ManilaDebug:
34     default: ''
35     description: Set to True to enable debugging Manila services.
36     type: string
37   RabbitPassword:
38     description: The password for RabbitMQ
39     type: string
40     hidden: true
41   RabbitUserName:
42     default: guest
43     description: The username for RabbitMQ
44     type: string
45   RabbitClientUseSSL:
46     default: false
47     description: >
48         Rabbit client subscriber parameter to specify
49         an SSL connection to the RabbitMQ host.
50     type: string
51   RabbitClientPort:
52     default: 5672
53     description: Set rabbit subscriber port, change this if using SSL
54     type: number
55   ManilaPassword:
56     description: The password for the manila service account.
57     type: string
58     hidden: true
59
60 conditions:
61   service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
62
63 outputs:
64   role_data:
65     description: Role data for the Manila Base service.
66     value:
67       service_name: manila_base
68       config_settings:
69         manila::rabbit_userid: {get_param: RabbitUserName}
70         manila::rabbit_password: {get_param: RabbitPassword}
71         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
72         manila::rabbit_port: {get_param: RabbitClientPort}
73         manila::debug:
74           if:
75           - service_debug_unset
76           - {get_param: Debug }
77           - {get_param: ManilaDebug }
78         manila::db::database_db_max_retries: -1
79         manila::db::database_max_retries: -1
80         manila::sql_connection:
81           make_url:
82             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
83             username: manila
84             password: {get_param: ManilaPassword}
85             host: {get_param: [EndpointMap, MysqlInternal, host]}
86             path: /manila
87             query:
88               read_default_file: /etc/my.cnf.d/tripleo.cnf
89               read_default_group: tripleo
90       service_config_settings:
91         mysql:
92           manila::db::mysql::password: {get_param: ManilaPassword}
93           manila::db::mysql::user: manila
94           manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
95           manila::db::mysql::dbname: manila
96           manila::db::mysql::allowed_hosts:
97             - '%'
98             - "%{hiera('mysql_bind_host')}"