Skip to content
Browse files

managing volumes is optional

  • Loading branch information...
1 parent 03617cc commit 7ff7c32477d62f0044447ac5c119393fcf4abc97 @jkff jkff committed Dec 7, 2012
Showing with 10 additions and 8 deletions.
  1. +10 −8 manifests/cinder.pp
View
18 manifests/cinder.pp
@@ -4,7 +4,8 @@
$rabbit_host = '127.0.0.1',
$volume_group = 'cinder-volumes',
$enabled = true,
- $purge_cinder_config = true,
+ $manage_volumes = true,
+ $purge_cinder_config = true
) {
if ($purge_cinder_config) {
resources { 'cinder_config':
@@ -19,13 +20,14 @@
verbose => $verbose,
}
- # Install / configure nova-volume
- class { 'cinder::volume':
- enabled => $enabled,
- }
- if $enabled {
- class { 'cinder::volume::iscsi':
- volume_group => $volume_group,
+ if $manage_volumes {
+ class { 'cinder::volume':
+ enabled => $enabled,
+ }
+ if $enabled {
+ class { 'cinder::volume::iscsi':
+ volume_group => $volume_group,
+ }
}
}
}

0 comments on commit 7ff7c32

Please sign in to comment.
Something went wrong with that request. Please try again.