1b28b8f3c4
Change-Id: Ie8d8c092e64890af2f0886303ef3f16752ba5b76
23 lines
530 B
Puppet
23 lines
530 B
Puppet
$resource = hiera($::resource_name)
|
|
|
|
$scheduler_driver = $resource['input']['scheduler_driver']
|
|
$package_ensure = $resource['input']['package_ensure']
|
|
|
|
include cinder::params
|
|
|
|
package { 'cinder':
|
|
ensure => $package_ensure,
|
|
name => $::cinder::params::package_name,
|
|
} ->
|
|
|
|
class {'cinder::scheduler':
|
|
scheduler_driver => $scheduler_driver,
|
|
package_ensure => $package_ensure,
|
|
enabled => true,
|
|
manage_service => true,
|
|
}
|
|
|
|
notify { "restart cinder volume":
|
|
notify => Service["cinder-scheduler"],
|
|
}
|