Permalink
Browse files

Add volume management option for compute nodes

This commit adds an option that can be used to
enable volume management on compute nodes.

It also adds a parameter that can be used to determine the name
of the volume group where volumes should be allocated from.
  • Loading branch information...
1 parent 0a67b50 commit 5eab169ec10655f8c35e06f265d177323663b7c0 Dan Bode committed May 25, 2012
Showing with 19 additions and 1 deletion.
  1. +19 −1 manifests/compute.pp
View
@@ -38,6 +38,10 @@
# Optional. Defaults to 'true',
# [verbose] Rather components should log verbosely.
# Optional. Defaults to false.
+# [manage_volumes] Rather nova-volume should be enabled on this compute node.
+# Optional. Defaults to false.
+# [nova_volumes] Name of volume group in which nova-volume will create logical volumes.
+# Optional. Defaults to nova-volumes.
#
class openstack::compute(
$private_interface,
@@ -59,7 +63,9 @@
$libvirt_type = 'kvm',
$vncproxy_host = false,
$vnc_enabled = 'true',
- $verbose = false
+ $verbose = false,
+ $manage_volumes = false,
+ $nova_volume = 'nova-volumes'
) {
class { 'nova':
@@ -121,4 +127,16 @@
install_service => $enable_network_service,
}
+ if $manage_volumes {
+
+ class { 'nova::volume':
+ enabled => true,
+ }
+
+ class { 'nova::volume::iscsi':
+ volume_group => $nova_volume,
+ iscsi_ip_address => $internal_address,
+ }
+ }
+
}

0 comments on commit 5eab169

Please sign in to comment.