]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/cinder/manifests/volume/eqlx.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / cinder / manifests / volume / eqlx.pp
1 # == define: cinder::volume::eqlx
2 #
3 # Configure the Dell EqualLogic driver for cinder.
4 #
5 # === Parameters
6 #
7 # [*san_ip*]
8 #   (required) The IP address of the Dell EqualLogic array.
9 #
10 # [*san_login*]
11 #   (required) The account to use for issuing SSH commands.
12 #
13 # [*san_password*]
14 #   (required) The password for the specified SSH account.
15 #
16 # [*san_thin_provision*]
17 #   (optional) Whether or not to use thin provisioning for volumes.
18 #   Defaults to true
19 #
20 # [*eqlx_group_name*]
21 #   (optional) The CLI prompt message without '>'.
22 #   Defaults to 'group-0'
23 #
24 # [*eqlx_pool*]
25 #   (optional) The pool in which volumes will be created.
26 #   Defaults to 'default'
27 #
28 # [*eqlx_use_chap*]
29 #   (optional) Use CHAP authentification for targets?
30 #   Defaults to false
31 #
32 # [*eqlx_chap_login*]
33 #   (optional) An existing CHAP account name.
34 #   Defaults to 'chapadmin'
35 #
36 # [*eqlx_chap_password*]
37 #   (optional) The password for the specified CHAP account name.
38 #   Defaults to '12345'
39 #
40 # [*eqlx_cli_timeout*]
41 #   (optional) The timeout for the Group Manager cli command execution.
42 #   Defaults to 30 seconds
43 #
44 # [*eqlx_cli_max_retries*]
45 #   (optional) The maximum retry count for reconnection.
46 #   Defaults to 5
47 #
48 class cinder::volume::eqlx (
49   $san_ip,
50   $san_login,
51   $san_password,
52   $san_thin_provision          = true,
53   $eqlx_group_name             = 'group-0',
54   $eqlx_pool                   = 'default',
55   $eqlx_use_chap               = false,
56   $eqlx_chap_login             = 'chapadmin',
57   $eqlx_chap_password          = '12345',
58   $eqlx_cli_timeout            = 30,
59   $eqlx_cli_max_retries        = 5,
60 ) {
61   cinder::backend::eqlx { 'DEFAULT':
62     san_ip               => $san_ip,
63     san_login            => $san_login,
64     san_password         => $san_password,
65     san_thin_provision   => $san_thin_provision,
66     eqlx_group_name      => $eqlx_group_name,
67     eqlx_pool            => $eqlx_pool,
68     eqlx_use_chap        => $eqlx_use_chap,
69     eqlx_chap_login      => $eqlx_chap_login,
70     eqlx_chap_password   => $eqlx_chap_password,
71     eqlx_cli_timeout     => $eqlx_cli_timeout,
72     eqlx_cli_max_retries => $eqlx_cli_max_retries,
73   }
74 }