Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5eab169ec10655f8c35e06f265d177323663b7c0 1 parent 0a67b50
Dan Bode authored
Showing with 19 additions and 1 deletion.
  1. +19 −1 manifests/compute.pp
20 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,
+ }
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.