5c9b94e123fba2b51cc2b3784f615bb0b18e97ff
[apex-tripleo-heat-templates.git] / puppet / services / manila-base.yaml
1 heat_template_version: 2016-04-08
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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   Debug:
19     default: ''
20     description: Set to True to enable debugging on all services.
21     type: string
22   RabbitPassword:
23     description: The password for RabbitMQ
24     type: string
25     hidden: true
26   RabbitUserName:
27     default: guest
28     description: The username for RabbitMQ
29     type: string
30   RabbitClientUseSSL:
31     default: false
32     description: >
33         Rabbit client subscriber parameter to specify
34         an SSL connection to the RabbitMQ host.
35     type: string
36   RabbitClientPort:
37     default: 5672
38     description: Set rabbit subscriber port, change this if using SSL
39     type: number
40   # Config specific parameters, to be provided via parameter_defaults
41   ManilaGenericEnableBackend:
42     type: boolean
43     default: true
44   ManilaGenericBackendName:
45     type: string
46     default: tripleo_generic
47   ManilaGenericDriverHandlesShareServers:
48     type: string
49     default: true
50   ManilaGenericSmbTemplateConfigPath:
51     type: string
52     default: '$state_path/smb.conf'
53   ManilaGenericVolumeNameTemplate:
54     type: string
55     default: 'manila-share-%s'
56   ManilaGenericVolumeSnapshotNameTemplate:
57     type: string
58     default: 'manila-snapshot-%s'
59   ManilaGenericShareMountPath:
60     type: string
61     default: '/shares'
62   ManilaGenericMaxTimeToCreateVolume:
63     type: string
64     default: '180'
65   ManilaGenericMaxTimeToAttach:
66     type: string
67     default: '120'
68   ManilaGenericServiceInstanceSmbConfigPath:
69     type: string
70     default: '$share_mount_path/smb.conf'
71   ManilaGenericShareVolumeFsType:
72     type: string
73     default: 'ext4'
74   ManilaGenericCinderVolumeType:
75     type: string
76     default: ''
77   ManilaGenericServiceInstanceUser:
78     type: string
79     default: ''
80   ManilaGenericServiceInstancePassword: #SET THIS via parameter_defaults
81     type: string
82     hidden: true
83   ManilaGenericServiceInstanceFlavorId:
84     type: number
85     default: 1
86   ManilaGenericServiceNetworkCidr:
87     type: string
88     default: '172.16.0.0/16'
89
90 outputs:
91   role_data:
92     description: Role data for the Manila Base service.
93     value:
94       service_name: manila_base
95       config_settings:
96         manila::rabbit_userid: {get_param: RabbitUserName}
97         manila::rabbit_password: {get_param: RabbitPassword}
98         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
99         manila::rabbit_port: {get_param: RabbitClientPort}
100         manila::debug: {get_param: Debug}
101         manila::db::mysql::user: manila
102         manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
103         manila::db::mysql::dbname: manila
104         manila::db::database_db_max_retries: -1
105         manila::db::database_max_retries: -1
106         manila_generic_enable_backend: {get_param: ManilaGenericEnableBackend}
107         manila::backend::generic::title: {get_param: ManilaGenericBackendName}
108         manila::backend::generic::driver_handles_share_servers: {get_param: ManilaGenericDriverHandlesShareServers}
109         manila::backend::generic::smb_template_config_path: {get_param: ManilaGenericSmbTemplateConfigPath}
110         manila::backend::generic::volume_name_template: {get_param: ManilaGenericVolumeNameTemplate}
111         manila::backend::generic::volume_snapshot_name_template: {get_param: ManilaGenericVolumeSnapshotNameTemplate}
112         manila::backend::generic::share_mount_path: {get_param: ManilaGenericShareMountPath}
113         manila::backend::generic::max_time_to_create_volume: {get_param: ManilaGenericMaxTimeToCreateVolume}
114         manila::backend::generic::max_time_to_attach: {get_param: ManilaGenericMaxTimeToAttach}
115         manila::backend::generic::service_instance_smb_config_path: {get_param: ManilaGenericServiceInstanceSmbConfigPath}
116         manila::backend::generic::share_volume_fstype: {get_param: ManilaGenericShareVolumeFsType}
117         manila::backend::generic::cinder_volume_type: {get_param: ManilaGenericCinderVolumeType}
118         manila::service_instance::service_instance_user: {get_param: ManilaGenericServiceInstanceUser}
119         manila::service_instance::service_instance_password: {get_param: ManilaGenericServiceInstancePassword}
120         manila::service_instance::service_instance_flavor_id: {get_param: ManilaGenericServiceInstanceFlavorId}
121         manila::service_instance::service_network_cidr: {get_param: ManilaGenericServiceNetworkCidr}
122         manila::db::mysql::allowed_hosts:
123           - '%'
124           - "%{hiera('mysql_bind_host')}"
125