Skip to content

Commit

Permalink
managing volumes is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jkff committed Dec 7, 2012
1 parent 03617cc commit 7ff7c32
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions manifests/cinder.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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.