summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deployment_scripts/cinder-scheduler-filters.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/deployment_scripts/cinder-scheduler-filters.pp b/deployment_scripts/cinder-scheduler-filters.pp
index 7a85490..76a6096 100644
--- a/deployment_scripts/cinder-scheduler-filters.pp
+++ b/deployment_scripts/cinder-scheduler-filters.pp
@@ -1,5 +1,25 @@
1notice('MODULAR: block-device/cinder-scheduler-filters.pp') 1notice('MODULAR: block-device/cinder-scheduler-filters.pp')
2 2
3include ::cinder::params
4
5notify { 'Updating cinder.conf': }
6
3class { 'cinder::scheduler::filter': 7class { 'cinder::scheduler::filter':
4 scheduler_default_filters => [ 'InstanceLocalityFilter', 'AvailabilityZoneFilter', 'CapacityFilter', 'CapabilitiesFilter' ], 8 scheduler_default_filters => [ 'InstanceLocalityFilter', 'AvailabilityZoneFilter', 'CapacityFilter', 'CapabilitiesFilter' ],
5} 9}
10
11service { 'cinder-api':
12 ensure => 'running',
13 name => $::cinder::params::api_service,
14 hasstatus => true,
15}
16
17service { 'cinder-scheduler':
18 ensure => 'running',
19 name => $::cinder::params::scheduler_service,
20 hasstatus => true,
21}
22
23Class['cinder::scheduler::filter'] -> Notify['Updating cinder.conf']
24Notify['Updating cinder.conf'] ~> Service['cinder-api']
25Notify['Updating cinder.conf'] ~> Service['cinder-scheduler']