Browse Source

Update Multipath module

Change-Id: I05395f5aa9e148aea8a5fc2dccf1212c600193cf
Co-Authored-By: Chaithanya Kopparthi<chaithanyak@biarca.com>
changes/21/390221/1
Pradip Rawat 2 years ago
parent
commit
0255d5b89f
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      deployment_scripts/puppet/modules/multipath/manifests/init.pp

+ 12
- 2
deployment_scripts/puppet/modules/multipath/manifests/init.pp View File

@@ -1,9 +1,18 @@
1 1
 class multipath {
2
+$plugin_settings = hiera('cinder_kaminario')
3
+$multi_0 = $plugin_settings["enable_multipath_0"] 
4
+$multi_1 = $plugin_settings["enable_multipath_1"]
5
+$multi_2 = $plugin_settings["enable_multipath_2"]
6
+$multi_3 = $plugin_settings["enable_multipath_3"]
7
+$multi_4 = $plugin_settings["enable_multipath_4"]
8
+$multi_5 = $plugin_settings["enable_multipath_5"]
2 9
 
3 10
 include ::nova::params
4 11
 
5
-$multipath_packages = [ 'sg3-utils', 'multipath-tools' ]
6
-package { $multipath_packages: ensure => 'installed' }
12
+if ( $multi_0 == true) or ($multi_1 == true) or ($multi_2 == true) or ($multi_3 == true) or ($multi_4 == true) or ($multi_5 == true) {
13
+
14
+package { sg3-utils: ensure => 'installed' }
15
+package { multipath-tools: ensure => 'installed' }
7 16
 
8 17
 nova_config {
9 18
   'libvirt/iscsi_use_multipath' :   value => True,
@@ -19,3 +28,4 @@ service { 'nova_compute':
19 28
 
20 29
 Nova_config<||> ~> Service['nova-compute']
21 30
 }
31
+}

Loading…
Cancel
Save