equal
deleted
inserted
replaced
|
1 # == Class: cinder::backend::zfs_nfs |
|
2 # |
|
3 # Configures Cinder volume ZfsNfsVolumeDriver |
|
4 # |
|
5 # === Parameters |
|
6 # |
|
7 # [*nfs_servers*] |
|
8 # (Required) Description |
|
9 # Defaults to '[]' |
|
10 # |
|
11 # [*volume_backend_name*] |
|
12 # (optional) Allows for the volume_backend_name to be separate of $name. |
|
13 # Defaults to: $name |
|
14 # |
|
15 # [*nfs_round_robin*] |
|
16 # (optional) Schedule volumes round robin across NFS shares. |
|
17 # Defaults to true |
|
18 # |
|
19 # [*extra_options*] |
|
20 # (optional) Hash of extra options to pass to the backend stanza |
|
21 # Defaults to: {} |
|
22 # Example : |
|
23 # { 'backend_name/nfs_option' => { 'value' => value1 } } |
|
24 |
|
25 |
|
26 define cinder::backend::zfs_nfs( |
|
27 $nfs_servers, |
|
28 $volume_backend_name = $name, |
|
29 $nfs_round_robin = true, |
|
30 $extra_options = {}, |
|
31 ) { |
|
32 |
|
33 cinder_config { |
|
34 "${name}/volume_backend_name": value => $volume_backend_name; |
|
35 "${name}/volume_driver": value => 'cinder.volume.drivers.solaris.zfs.ZfsNfsVolumeDriver'; |
|
36 "${name}/nfs_servers": value => $nfs_servers; |
|
37 "${name}/nfs_round_robin": value => $nfs_round_robin; |
|
38 } |
|
39 |
|
40 create_resources('cinder_config', $extra_options) |
|
41 } |