~fuel-plugin-cinder-netapp-team/fuel-plugin-cinder-netapp/master

« back to all changes in this revision

Viewing changes to deployment_scripts/puppet/modules/plugin_cinder_netapp/manifests/backend/iscsi.pp

  • Committer: Andrey Volochay
  • Date: 2016-04-13 10:39:23 UTC
  • Revision ID: git-v1:d15dbb3704b05de3745d81b0bd71a11e1c733682
Add MOS 8.0 support

 - The plugin has been totally refactored to accordance with changes in
   OpenStack Liberty and MOS 8.0
 - All documented features of NetApp Cinder Driver are configurable
 - Plugin can change Cinder settings after deployment with wrong
   parameters. It requires manual actions
 - Defined type (backend::netapp) form upstream puppet cinder module is
   not used because is outdated and doesn't support last changes in
   Cinder NetApp driver
 - Added a tasks that deletes not existed cinder services

Change-Id: Ic70ad0a99c41860502e15fe8671e6ca3f11e9f58

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# this can be used to insert into cinder_iscsi section lvm configuration parameters
2
 
#
3
 
# [iscsi_ip_address] The IP address that the iSCSI daemon is listening on
4
 
# [iscsi_helper] iSCSI target user-land tool to use
5
 
# [volume_group] Name for the VG that will contain exported volumes
6
 
#
7
 
# === Examples
8
 
#
9
 
#  class { 'plugin_cinder_netapp::backend::iscsi':
10
 
#  $iscsi_ip_address = '127.0.0.1',
11
 
#  $iscsi_helper,
12
 
#  $volume_group     = 'cinder' ,
13
 
#  }
14
 
#
15
1
class plugin_cinder_netapp::backend::iscsi (
16
 
  $volume_group     = 'cinder',
17
 
  $iscsi_ip_address =  $::internal_address,
18
 
  $iscsi_helper     =  $::cinder::params::iscsi_helper,
19
 
) {
 
2
  $volume_group = 'cinder',
 
3
  $iscsi_helper = $cinder::params::iscsi_helper,
 
4
  $backend_type,
 
5
) inherits cinder::params {
 
6
 
 
7
  $network_scheme = hiera_hash('network_scheme', {})
 
8
  prepare_network_config($network_scheme)
 
9
 
 
10
  $storage_address = get_network_role_property('cinder/iscsi', 'ipaddr')
20
11
 
21
12
  cinder_config {
22
 
    'cinder_iscsi/volume_backend_name': value => 'cinder_iscsi';
23
 
    'cinder_iscsi/iscsi_ip_address':    value => $iscsi_ip_address;
 
13
    'cinder_iscsi/volume_backend_name': value => $backend_type;
 
14
    'cinder_iscsi/volume_driver':       value => 'cinder.volume.drivers.lvm.LVMVolumeDriver';
24
15
    'cinder_iscsi/iscsi_helper':        value => $iscsi_helper;
25
16
    'cinder_iscsi/volume_group':        value => $volume_group;
 
17
    'cinder_iscsi/iscsi_ip_address':    value => $storage_address;
 
18
    'cinder_iscsi/backend_host':        value => $storage_address;
26
19
  }
27
 
 
28
20
}