1 # == Define: cinder::backend::hp3par_iscsi
3 # Configures Cinder volume HP 3par ISCSI driver.
4 # Parameters are particular to each volume driver.
9 # (required) url for api access to 3par - example https://10.x.x.x:8080/api/v1
12 # (required) Username for HP3par admin user
15 # (required) Password for hp3par_username
18 # (required) IP address of HP 3par service processor.
21 # (required) Username for HP 3par account.
24 # (required) Password for HP 3par account.
26 # [*hp3par_iscsi_ips*]
27 # (required) iscsi IP addresses for the HP 3par array
28 # This is a list of IPs with ports in a string, for example:
29 # '1.2.3.4:3261, 5.6.7.8:3261'
31 # [*volume_backend_name*]
32 # (optional) Allows for the volume_backend_name to be separate of $name.
36 # (optional) Setup cinder-volume to use HP 3par volume driver.
37 # Defaults to 'cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver'
39 # [*hp3par_iscsi_chap_enabled
40 # (required) setting to false by default
43 # (optional) set to hp3par_cfg by default in the cinder driver
45 # [*hp3par_snapshot_retention*]
46 # (required) Time in hours for snapshot retention. Must be less
47 # than hp3par_snapshot_expiration.
50 # [*hp3par_snapshot_expiration*]
51 # (required) Time in hours until a snapshot expires. Must be more
52 # than hp3par_snapshot_retention.
55 define cinder::backend::hp3par_iscsi(
63 $volume_backend_name = $name,
64 $volume_driver = 'cinder.volume.drivers.san.hp.hp_3par_iscsi.HP3PARISCSIDriver',
65 $hp3par_iscsi_chap_enabled = false,
66 $hp3par_snap_cpg = 'OpenstackCPG',
67 $hp3par_snapshot_retention = 48,
68 $hp3par_snapshot_expiration = 72,
71 if ($hp3par_snapshot_expiration <= $hp3par_snapshot_retention) {
72 fail ('hp3par_snapshot_expiration must be greater than hp3par_snapshot_retention')
76 "${name}/volume_backend_name": value => $volume_backend_name;
77 "${name}/volume_driver": value => $volume_driver;
78 "${name}/hp3par_username": value => $hp3par_username;
79 "${name}/hp3par_password": value => $hp3par_password, secret => true;
80 "${name}/san_ip": value => $san_ip;
81 "${name}/san_login": value => $san_login;
82 "${name}/san_password": value => $san_password, secret => true;
83 "${name}/hp3par_iscsi_ips": value => $hp3par_iscsi_ips;
84 "${name}/hp3par_api_url": value => $hp3par_api_url;
85 "${name}/hp3par_iscsi_chap_enabled": value => $hp3par_iscsi_chap_enabled;
86 "${name}/hp3par_snap_cpg": value => $hp3par_snap_cpg;
87 "${name}/hp3par_snapshot_retention": value => $hp3par_snapshot_retention;
88 "${name}/hp3par_snapshot_expiration": value => $hp3par_snapshot_expiration;