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