Restart cinder services after changing cinder config on controllers

Change-Id: I5f8324eb9639f9000b2eed40b8d64562a564eddd
Closes-bug: #1522370
This commit is contained in:
Denis Egorenko 2015-12-03 14:47:24 +03:00
parent a939e0db0e
commit 6e070a90f2
1 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,25 @@
notice('MODULAR: block-device/cinder-scheduler-filters.pp')
include ::cinder::params
notify { 'Updating cinder.conf': }
class { 'cinder::scheduler::filter':
scheduler_default_filters => [ 'InstanceLocalityFilter', 'AvailabilityZoneFilter', 'CapacityFilter', 'CapabilitiesFilter' ],
}
service { 'cinder-api':
ensure => 'running',
name => $::cinder::params::api_service,
hasstatus => true,
}
service { 'cinder-scheduler':
ensure => 'running',
name => $::cinder::params::scheduler_service,
hasstatus => true,
}
Class['cinder::scheduler::filter'] -> Notify['Updating cinder.conf']
Notify['Updating cinder.conf'] ~> Service['cinder-api']
Notify['Updating cinder.conf'] ~> Service['cinder-scheduler']