Add role specific information to the service template
[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   RabbitPassword:
34     description: The password for RabbitMQ
35     type: string
36     hidden: true
37   RabbitUserName:
38     default: guest
39     description: The username for RabbitMQ
40     type: string
41   RabbitClientUseSSL:
42     default: false
43     description: >
44         Rabbit client subscriber parameter to specify
45         an SSL connection to the RabbitMQ host.
46     type: string
47   RabbitClientPort:
48     default: 5672
49     description: Set rabbit subscriber port, change this if using SSL
50     type: number
51   ManilaPassword:
52     description: The password for the manila service account.
53     type: string
54     hidden: true
55
56 outputs:
57   role_data:
58     description: Role data for the Manila Base service.
59     value:
60       service_name: manila_base
61       config_settings:
62         manila::rabbit_userid: {get_param: RabbitUserName}
63         manila::rabbit_password: {get_param: RabbitPassword}
64         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
65         manila::rabbit_port: {get_param: RabbitClientPort}
66         manila::debug: {get_param: Debug}
67         manila::db::database_db_max_retries: -1
68         manila::db::database_max_retries: -1
69         manila::sql_connection:
70           make_url:
71             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
72             username: manila
73             password: {get_param: ManilaPassword}
74             host: {get_param: [EndpointMap, MysqlInternal, host]}
75             path: /manila
76             query:
77               read_default_file: /etc/my.cnf.d/tripleo.cnf
78               read_default_group: tripleo
79       service_config_settings:
80         mysql:
81           manila::db::mysql::password: {get_param: ManilaPassword}
82           manila::db::mysql::user: manila
83           manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
84           manila::db::mysql::dbname: manila
85           manila::db::mysql::allowed_hosts:
86             - '%'
87             - "%{hiera('mysql_bind_host')}"