diff options
author | Pradip Rawat <Pradip.Rawat.CTR@kaminario.com> | 2016-10-24 14:24:46 +0530 |
---|---|---|
committer | Pradip Rawat <Pradip.Rawat.CTR@kaminario.com> | 2016-10-24 14:24:46 +0530 |
commit | 0255d5b89f5e83867be4c1eccb843b5a42684826 (patch) | |
tree | 6408b7261aba1fa771fab0c74651a294e761c87b | |
parent | e89184043f5b8b92aa986d2062ef16c29cea12bd (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.pp | 14 |
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 @@ | |||
1 | class multipath { | 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 | include ::nova::params | 10 | include ::nova::params |
4 | 11 | ||
5 | $multipath_packages = [ 'sg3-utils', 'multipath-tools' ] | 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) { |
6 | package { $multipath_packages: ensure => 'installed' } | 13 | |
14 | package { sg3-utils: ensure => 'installed' } | ||
15 | package { multipath-tools: ensure => 'installed' } | ||
7 | 16 | ||
8 | nova_config { | 17 | nova_config { |
9 | 'libvirt/iscsi_use_multipath' : value => True, | 18 | 'libvirt/iscsi_use_multipath' : value => True, |
@@ -19,3 +28,4 @@ service { 'nova_compute': | |||
19 | 28 | ||
20 | Nova_config<||> ~> Service['nova-compute'] | 29 | Nova_config<||> ~> Service['nova-compute'] |
21 | } | 30 | } |
31 | } | ||