aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/manifests/overcloud_volume.pp
diff options
context:
space:
mode:
authorYanis Guenane <yanis.guenane@enovance.com>2015-03-09 12:17:31 +0100
committerYanis Guenane <yanis.guenane@enovance.com>2015-03-12 07:05:51 -0400
commit4bc4171a151ebac2c9f1e42aed7dc23de844e429 (patch)
treebd8b8eb1f58461cd798e9cb0396d120d3c7f04b7 /puppet/manifests/overcloud_volume.pp
parent8772095c427c0c90747077271c70d84b16741359 (diff)
Use Cinder multibackend by default
Currently Cinder iscsi backend is configured within the DEFAULT section. Since we aim to support multibackend, this commit puts the iscsi backend in its own section and enable it by default configuring it properly. Also adds a parameter which can be used to disable the default backend. Co-Authored-By: Giulio Fidente <gfidente@redhat.com> Change-Id: I05fb44b59829c0afa8a6588956a48320f2f65159
Diffstat (limited to 'puppet/manifests/overcloud_volume.pp')
-rw-r--r--puppet/manifests/overcloud_volume.pp16
1 files changed, 15 insertions, 1 deletions
diff --git a/puppet/manifests/overcloud_volume.pp b/puppet/manifests/overcloud_volume.pp
index b433321a..3d7cb490 100644
--- a/puppet/manifests/overcloud_volume.pp
+++ b/puppet/manifests/overcloud_volume.pp
@@ -30,9 +30,23 @@ if count(hiera('ntp::servers')) > 0 {
include ::cinder
include ::cinder::volume
-include ::cinder::volume::iscsi
include ::cinder::setup_test_volume
+$cinder_enable_iscsi = hiera('cinder_enable_iscsi_backend', true)
+if $cinder_enable_iscsi {
+ $cinder_iscsi_backend = 'tripleo_iscsi'
+
+ cinder::backend::iscsi { $cinder_iscsi_backend :
+ iscsi_ip_address => hiera('cinder_iscsi_ip_address'),
+ iscsi_helper => hiera('cinder_iscsi_helper'),
+ }
+}
+
+$cinder_enabled_backends = any2array($cinder_iscsi_backend)
+class { '::cinder::backends' :
+ enabled_backends => $cinder_enabled_backends,
+}
+
$snmpd_user = hiera('snmpd_readonly_user_name')
snmp::snmpv3_user { $snmpd_user:
authtype => 'MD5',