Merge "Added OvS permission workaround for enabling DPDK"
[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   NotificationDriver:
60     type: string
61     default: 'messagingv2'
62     description: Driver or drivers to handle sending notifications.
63     constraints:
64       - allowed_values: [ 'messagingv2', 'noop' ]
65
66 conditions:
67   service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
68
69 outputs:
70   role_data:
71     description: Role data for the Manila Base service.
72     value:
73       service_name: manila_base
74       config_settings:
75         manila::notification_driver: {get_param: NotificationDriver}
76         manila::rabbit_userid: {get_param: RabbitUserName}
77         manila::rabbit_password: {get_param: RabbitPassword}
78         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
79         manila::rabbit_port: {get_param: RabbitClientPort}
80         manila::debug:
81           if:
82           - service_debug_unset
83           - {get_param: Debug }
84           - {get_param: ManilaDebug }
85         manila::db::database_db_max_retries: -1
86         manila::db::database_max_retries: -1
87         manila::sql_connection:
88           make_url:
89             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
90             username: manila
91             password: {get_param: ManilaPassword}
92             host: {get_param: [EndpointMap, MysqlInternal, host]}
93             path: /manila
94             query:
95               read_default_file: /etc/my.cnf.d/tripleo.cnf
96               read_default_group: tripleo
97       service_config_settings:
98         mysql:
99           manila::db::mysql::password: {get_param: ManilaPassword}
100           manila::db::mysql::user: manila
101           manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
102           manila::db::mysql::dbname: manila
103           manila::db::mysql::allowed_hosts:
104             - '%'
105             - "%{hiera('mysql_bind_host')}"