summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradip Rawat <Pradip.Rawat.CTR@kaminario.com>2016-10-24 14:24:46 +0530
committerPradip Rawat <Pradip.Rawat.CTR@kaminario.com>2016-10-24 14:24:46 +0530
commit0255d5b89f5e83867be4c1eccb843b5a42684826 (patch)
tree6408b7261aba1fa771fab0c74651a294e761c87b
parente89184043f5b8b92aa986d2062ef16c29cea12bd (diff)
Update Multipath module
Change-Id: I05395f5aa9e148aea8a5fc2dccf1212c600193cf Co-Authored-By: Chaithanya Kopparthi<chaithanyak@biarca.com>
Notes
Notes (review): Code-Review+2: Pradip Rawat <Pradip.Rawat.CTR@kaminario.com> Workflow+1: Pradip Rawat <Pradip.Rawat.CTR@kaminario.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Mon, 24 Oct 2016 09:24:28 +0000 Reviewed-on: https://review.openstack.org/390221 Project: openstack/fuel-plugin-cinder-kaminario Branch: refs/heads/master
-rw-r--r--deployment_scripts/puppet/modules/multipath/manifests/init.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/deployment_scripts/puppet/modules/multipath/manifests/init.pp b/deployment_scripts/puppet/modules/multipath/manifests/init.pp
index bda78a1..586a028 100644
--- a/deployment_scripts/puppet/modules/multipath/manifests/init.pp
+++ b/deployment_scripts/puppet/modules/multipath/manifests/init.pp
@@ -1,9 +1,18 @@
1class multipath { 1class 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
3include ::nova::params 10include ::nova::params
4 11
5$multipath_packages = [ 'sg3-utils', 'multipath-tools' ] 12if ( $multi_0 == true) or ($multi_1 == true) or ($multi_2 == true) or ($multi_3 == true) or ($multi_4 == true) or ($multi_5 == true) {
6package { $multipath_packages: ensure => 'installed' } 13
14package { sg3-utils: ensure => 'installed' }
15package { multipath-tools: ensure => 'installed' }
7 16
8nova_config { 17nova_config {
9 'libvirt/iscsi_use_multipath' : value => True, 18 'libvirt/iscsi_use_multipath' : value => True,
@@ -19,3 +28,4 @@ service { 'nova_compute':
19 28
20Nova_config<||> ~> Service['nova-compute'] 29Nova_config<||> ~> Service['nova-compute']
21} 30}
31}