summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Egorenko <degorenko@mirantis.com>2015-12-03 14:47:24 +0300
committerDenis Egorenko <degorenko@mirantis.com>2015-12-11 13:22:21 +0300
commit6e070a90f2d5fb35ca3c1a9dc62f5cfce1bc2799 (patch)
tree25e488bc859e8903504bf1c9d9e7f61de2a4a52b
parenta939e0db0e5803921ab6babb6532b29f253624a7 (diff)
Restart cinder services after changing cinder config on controllersHEADmaster
Notes
Notes (review): Code-Review+1: Andrey Pavlov <apavlov@mirantis.com> Code-Review+2: Sergey Lukjanov <slukjanov@mirantis.com> Code-Review+2: Denis Egorenko <degorenko@mirantis.com> Workflow+1: Denis Egorenko <degorenko@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 18 Dec 2015 09:04:19 +0000 Reviewed-on: https://review.openstack.org/252899 Project: openstack/fuel-plugin-block-device Branch: refs/heads/master
-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']