Files
puppet-openstack/manifests/cinder.pp
newptone 416f3364ea Add the new openstack::cinder class.
This patch contains:
      * Add a deprecated warning in the openstack::cinder,b/c it
	use the deprecated cinder::base class
      * Add a new class openstack::cinder::controller,which runs
	cinder-api and cinder-scheduler
      * Add a new class opensatck::cinder::storage,which runs
        cinder-volume
    Fixed bug 1172540

Change-Id: I028cd5ac7004cc320a73e8780e859cc239c45c6f
2013-05-02 14:32:27 +08:00

28 lines
681 B
Puppet

class openstack::cinder(
$sql_connection,
$rabbit_password,
$rabbit_host = '127.0.0.1',
$volume_group = 'nova-volumes',
$enabled = true
) {
warning('The "openstack::cinder" class is deprecated. Use "openstack::cinder::controller and openstack::cinder::volume" instead.')
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,
}
}
}