X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fcinder%2Fmanifests%2Fbackend%2Fnexenta.pp;fp=3rdparty%2Fmodules%2Fcinder%2Fmanifests%2Fbackend%2Fnexenta.pp;h=0124726ad6fc33f6183c7d3f0f58d6fc4a47a248;hb=4631045ebb77ee8622f6fa09277a50c372bcc02e;hp=0000000000000000000000000000000000000000;hpb=3d4dc4fd9e59bd0e07646c99f6b356c7d9d859aa;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/cinder/manifests/backend/nexenta.pp b/3rdparty/modules/cinder/manifests/backend/nexenta.pp new file mode 100644 index 000000000..0124726ad --- /dev/null +++ b/3rdparty/modules/cinder/manifests/backend/nexenta.pp @@ -0,0 +1,59 @@ +# == Class: cinder::backend::nexenta +# +# Setups Cinder with Nexenta volume driver. +# +# === Parameters +# +# [*nexenta_user*] +# (required) User name to connect to Nexenta SA. +# +# [*nexenta_password*] +# (required) Password to connect to Nexenta SA. +# +# [*nexenta_host*] +# (required) IP address of Nexenta SA. +# +# [*volume_backend_name*] +# (optional) Allows for the volume_backend_name to be separate of $name. +# Defaults to: $name +# +# [*nexenta_volume*] +# (optional) Pool on SA that will hold all volumes. Defaults to 'cinder'. +# +# [*nexenta_target_prefix*] +# (optional) IQN prefix for iSCSI targets. Defaults to 'iqn:'. +# +# [*nexenta_target_group_prefix*] +# (optional) Prefix for iSCSI target groups on SA. Defaults to 'cinder/'. +# +# [*nexenta_blocksize*] +# (optional) Block size for volumes. Defaults to '8k'. +# +# [*nexenta_sparse*] +# (optional) Flag to create sparse volumes. Defaults to true. +# +define cinder::backend::nexenta ( + $nexenta_user, + $nexenta_password, + $nexenta_host, + $volume_backend_name = $name, + $nexenta_volume = 'cinder', + $nexenta_target_prefix = 'iqn:', + $nexenta_target_group_prefix = 'cinder/', + $nexenta_blocksize = '8k', + $nexenta_sparse = true +) { + + cinder_config { + "${name}/volume_backend_name": value => $volume_backend_name; + "${name}/nexenta_user": value => $nexenta_user; + "${name}/nexenta_password": value => $nexenta_password, secret => true; + "${name}/nexenta_host": value => $nexenta_host; + "${name}/nexenta_volume": value => $nexenta_volume; + "${name}/nexenta_target_prefix": value => $nexenta_target_prefix; + "${name}/nexenta_target_group_prefix": value => $nexenta_target_group_prefix; + "${name}/nexenta_blocksize": value => $nexenta_blocksize; + "${name}/nexenta_sparse": value => $nexenta_sparse; + "${name}/volume_driver": value => 'cinder.volume.drivers.nexenta.volume.NexentaDriver'; + } +}