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

« back to all changes in this revision

Viewing changes to deployment_scripts/puppet/manifests/hiera_override.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
notice('MODULAR: netapp-hiera-override')
 
2
 
 
3
$cinder_netapp = hiera_hash('cinder_netapp', {})
 
4
$multibackend  = $cinder_netapp['multibackend']
 
5
 
 
6
$hiera_dir    = '/etc/hiera/plugins'
 
7
$plugin_yaml  = 'cinder_netapp.yaml'
 
8
$plugin_name  = 'cinder_netapp'
 
9
 
 
10
 
 
11
$content = inline_template('
 
12
storage_hash:
 
13
  volume_backend_names:
 
14
    netapp: cinder_netapp
 
15
<% if ! @multibackend -%>
 
16
    volumes_lvm: false
 
17
    volumes_ceph: false
 
18
<% end -%>
 
19
')
 
20
 
 
21
file { $hiera_dir:
 
22
  ensure => directory,
 
23
}
 
24
 
 
25
file { "${hiera_dir}/${plugin_yaml}":
 
26
  ensure  => file,
 
27
  content => $content,
 
28
}