Browse Source

Update fuel plugin repo for Kamianrio to restart services

Change-Id: Ie00fe2610149008abfd1d162ad422b7bf36d927b
Co-Authored-By: Chaithanya Kopparthi<chaithanyak@biarca.com>
master
Pradip Rawat 2 years ago
parent
commit
e89184043f

+ 9
- 3
deployment_scripts/puppet/manifests/cinder_kaminario.pp View File

@@ -3,7 +3,13 @@ notice('MODULAR: cinder_kaminario')
3 3
 
4 4
 class { 'kaminario::krest': }->
5 5
 class { 'kaminario::driver': }->
6
-class { 'kaminario::config': }~> Exec[cinder_volume]
6
+class { 'kaminario::config': } ~> Service['cinder_volume']
7 7
 
8
-exec {'cinder_volume':
9
-  command => '/usr/sbin/service cinder-volume restart',}
8
+service { 'cinder_volume':
9
+  ensure     => running,
10
+  name       => cinder-volume,
11
+  enable     => true,
12
+  hasstatus  => true,
13
+  hasrestart => true,
14
+
15
+}

+ 3
- 2
deployment_scripts/puppet/modules/kaminario/files/exception.sh View File

@@ -1,2 +1,3 @@
1
-grep -q -F 'Kaminario' /usr/lib/python2.7/dist-packages/cinder/exception.py || sudo sed -i '$a \ \ \n\nclass KaminarioCinderDriverException(VolumeDriverException):\n\    \message = _("KaminarioCinderDriver failure: %(reason)s")\n\n\nclass KaminarioRetryableException(VolumeDriverException):\n\    \message = _("Kaminario retryable exception: %(reason)s")' /usr/lib/python2.7/dist-packages/cinder/exception.py
2
-
1
+grep -q -F 'Kaminario' /usr/lib/python2.7/dist-packages/cinder/exception.py || \
2
+sudo sed -i '$a \ \ \n\nclass KaminarioCinderDriverException(VolumeDriverException):\n\    \message = _("KaminarioCinderDriver failure: %(reason)s")\n\n\nclass KaminarioRetryableException(VolumeDriverException):\n\    \message = _("Kaminario retryable exception: %(reason)s")' \
3
+/usr/lib/python2.7/dist-packages/cinder/exception.py

+ 9
- 4
deployment_scripts/puppet/modules/kaminario/manifests/controller_config.pp View File

@@ -30,9 +30,14 @@ $plugin_settings = hiera('cinder_kaminario')
30 30
 
31 31
   cinder_config {
32 32
     'DEFAULT/default_volume_type'             : value => $default_volume_type
33
-  }~> Exec[cinder_api]
34
-
35
-exec {'cinder_api':
36
-  command => '/usr/sbin/service cinder-api restart',}
33
+  }
37 34
 
35
+service { 'cinder_api':
36
+  ensure     => running,
37
+  name       => cinder-api,
38
+  enable     => true,
39
+  hasstatus  => true,
40
+  hasrestart => true,
41
+}
42
+Cinder_config<||> ~> Service['cinder-api']
38 43
 }

Loading…
Cancel
Save