Update fuel plugin repo for Kamianrio to restart services
Change-Id: Ie00fe2610149008abfd1d162ad422b7bf36d927b Co-Authored-By: Chaithanya Kopparthi<chaithanyak@biarca.com>
This commit is contained in:
parent
9550a4d0e6
commit
e89184043f
|
@ -3,7 +3,13 @@ notice('MODULAR: cinder_kaminario')
|
|||
|
||||
class { 'kaminario::krest': }->
|
||||
class { 'kaminario::driver': }->
|
||||
class { 'kaminario::config': }~> Exec[cinder_volume]
|
||||
class { 'kaminario::config': } ~> Service['cinder_volume']
|
||||
|
||||
exec {'cinder_volume':
|
||||
command => '/usr/sbin/service cinder-volume restart',}
|
||||
service { 'cinder_volume':
|
||||
ensure => running,
|
||||
name => cinder-volume,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
|
||||
}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
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
|
||||
|
||||
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
|
||||
|
|
|
@ -30,9 +30,14 @@ $plugin_settings = hiera('cinder_kaminario')
|
|||
|
||||
cinder_config {
|
||||
'DEFAULT/default_volume_type' : value => $default_volume_type
|
||||
}~> Exec[cinder_api]
|
||||
|
||||
exec {'cinder_api':
|
||||
command => '/usr/sbin/service cinder-api restart',}
|
||||
}
|
||||
|
||||
service { 'cinder_api':
|
||||
ensure => running,
|
||||
name => cinder-api,
|
||||
enable => true,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
}
|
||||
Cinder_config<||> ~> Service['cinder-api']
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue