Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   Debug:
34     default: ''
35     description: Set to True to enable debugging on all services.
36     type: string
37   ManilaDebug:
38     default: ''
39     description: Set to True to enable debugging Manila services.
40     type: string
41   RabbitPassword:
42     description: The password for RabbitMQ
43     type: string
44     hidden: true
45   RabbitUserName:
46     default: guest
47     description: The username for RabbitMQ
48     type: string
49   RabbitClientUseSSL:
50     default: false
51     description: >
52         Rabbit client subscriber parameter to specify
53         an SSL connection to the RabbitMQ host.
54     type: string
55   RabbitClientPort:
56     default: 5672
57     description: Set rabbit subscriber port, change this if using SSL
58     type: number
59   ManilaPassword:
60     description: The password for the manila service account.
61     type: string
62     hidden: true
63   NotificationDriver:
64     type: string
65     default: 'messagingv2'
66     description: Driver or drivers to handle sending notifications.
67     constraints:
68       - allowed_values: [ 'messagingv2', 'noop' ]
69
70 conditions:
71   service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
72
73 outputs:
74   role_data:
75     description: Role data for the Manila Base service.
76     value:
77       service_name: manila_base
78       config_settings:
79         manila::notification_driver: {get_param: NotificationDriver}
80         manila::rabbit_userid: {get_param: RabbitUserName}
81         manila::rabbit_password: {get_param: RabbitPassword}
82         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
83         manila::rabbit_port: {get_param: RabbitClientPort}
84         manila::debug:
85           if:
86           - service_debug_unset
87           - {get_param: Debug }
88           - {get_param: ManilaDebug }
89         manila::db::database_db_max_retries: -1
90         manila::db::database_max_retries: -1
91         manila::sql_connection:
92           make_url:
93             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
94             username: manila
95             password: {get_param: ManilaPassword}
96             host: {get_param: [EndpointMap, MysqlInternal, host]}
97             path: /manila
98             query:
99               read_default_file: /etc/my.cnf.d/tripleo.cnf
100               read_default_group: tripleo
101       service_config_settings:
102         mysql:
103           manila::db::mysql::password: {get_param: ManilaPassword}
104           manila::db::mysql::user: manila
105           manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
106           manila::db::mysql::dbname: manila
107           manila::db::mysql::allowed_hosts:
108             - '%'
109             - "%{hiera('mysql_bind_host')}"