Browse Source

Restart cinder services after changing cinder config on controllers

Change-Id: I5f8324eb9639f9000b2eed40b8d64562a564eddd
Closes-bug: #1522370
Denis Egorenko 3 years ago
parent
commit
6e070a90f2
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      deployment_scripts/cinder-scheduler-filters.pp

+ 20
- 0
deployment_scripts/cinder-scheduler-filters.pp View File

@@ -1,5 +1,25 @@
1 1
 notice('MODULAR: block-device/cinder-scheduler-filters.pp')
2 2
 
3
+include ::cinder::params
4
+
5
+notify { 'Updating cinder.conf': }
6
+
3 7
 class { 'cinder::scheduler::filter':
4 8
   scheduler_default_filters => [ 'InstanceLocalityFilter', 'AvailabilityZoneFilter', 'CapacityFilter', 'CapabilitiesFilter' ],
5 9
 }
10
+
11
+service { 'cinder-api':
12
+  ensure    => 'running',
13
+  name      => $::cinder::params::api_service,
14
+  hasstatus => true,
15
+}
16
+
17
+service { 'cinder-scheduler':
18
+  ensure    => 'running',
19
+  name      => $::cinder::params::scheduler_service,
20
+  hasstatus => true,
21
+}
22
+
23
+Class['cinder::scheduler::filter'] -> Notify['Updating cinder.conf']
24
+Notify['Updating cinder.conf'] ~> Service['cinder-api']
25
+Notify['Updating cinder.conf'] ~> Service['cinder-scheduler']

Loading…
Cancel
Save