6b653d8b83dbfbdf32dfacd4cf1b5dc96c5adf05
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / nexenta.pp
1 # == Class: cinder::volume::nexenta
2 #
3 # Setups Cinder with Nexenta volume driver.
4 #
5 # === Parameters
6 #
7 # [*nexenta_user*]
8 #   (required) User name to connect to Nexenta SA.
9 #
10 # [*nexenta_password*]
11 #   (required) Password to connect to Nexenta SA.
12 #
13 # [*nexenta_host*]
14 #   (required) IP address of Nexenta SA.
15 #
16 # [*nexenta_volume*]
17 #   (optional) Pool on SA that will hold all volumes. Defaults to 'cinder'.
18 #
19 # [*nexenta_target_prefix*]
20 #   (optional) IQN prefix for iSCSI targets. Defaults to 'iqn:'.
21 #
22 # [*nexenta_target_group_prefix*]
23 #   (optional) Prefix for iSCSI target groups on SA. Defaults to 'cinder/'.
24 #
25 # [*nexenta_blocksize*]
26 #   (optional) Block size for volumes. Defaults to '8k'.
27 #
28 # [*nexenta_sparse*]
29 #   (optional) Flag to create sparse volumes. Defaults to true.
30 #
31 class cinder::volume::nexenta (
32   $nexenta_user,
33   $nexenta_password,
34   $nexenta_host,
35   $nexenta_volume               = 'cinder',
36   $nexenta_target_prefix        = 'iqn:',
37   $nexenta_target_group_prefix  = 'cinder/',
38   $nexenta_blocksize            = '8k',
39   $nexenta_sparse               = true
40 ) {
41
42   cinder::backend::nexenta { 'DEFAULT':
43     nexenta_user                => $nexenta_user,
44     nexenta_password            => $nexenta_password,
45     nexenta_host                => $nexenta_host,
46     nexenta_volume              => $nexenta_volume,
47     nexenta_target_prefix       => $nexenta_target_prefix,
48     nexenta_target_group_prefix => $nexenta_target_group_prefix,
49     nexenta_blocksize           => $nexenta_blocksize,
50     nexenta_sparse              => $nexenta_sparse,
51   }
52 }