
remove volume management from openstack::compute add cinder server services to openstack::controller add cinder db code
26 lines
547 B
Puppet
26 lines
547 B
Puppet
class openstack::cinder(
|
|
$sql_connection,
|
|
$rabbit_password,
|
|
$rabbit_host = '127.0.0.1',
|
|
$volume_group = 'nova-volumes',
|
|
$enabled = true
|
|
) {
|
|
|
|
class { 'cinder::base':
|
|
rabbit_password => $rabbit_password,
|
|
rabbit_host => $rabbit_host,
|
|
sql_connection => $sql_connection,
|
|
verbose => $verbose,
|
|
}
|
|
|
|
# Install / configure nova-volume
|
|
class { 'cinder::volume':
|
|
enabled => $enabled,
|
|
}
|
|
if $enabled {
|
|
class { 'cinder::volume::iscsi':
|
|
volume_group => $volume_group,
|
|
}
|
|
}
|
|
}
|