Fix rabbitmq restart

With the move to pluggable messaging, we call the services to restart
differently and not always just 'rabbitmq' any longer.

Closes-Bug: #1816070

Change-Id: I9bc7603dbb073d735390db398c0e00c75cebd6fa
This commit is contained in:
Michele Baldessari 2019-02-11 10:56:25 +01:00
parent 1c46d1850a
commit d59ac1bd9a
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ outputs:
user: root
command:
- '/usr/bin/bootstrap_host_exec'
- 'rabbitmq'
- 'oslo_messaging_notify'
- str_replace:
template:
'if /usr/sbin/pcs resource show rabbitmq-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT rabbitmq-bundle; echo "rabbitmq-bundle restart invoked"; fi'

View File

@ -193,7 +193,7 @@ outputs:
user: root
command:
- '/usr/bin/bootstrap_host_exec'
- 'rabbitmq'
- 'oslo_messaging_rpc'
- str_replace:
template:
'if /usr/sbin/pcs resource show rabbitmq-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT rabbitmq-bundle; echo "rabbitmq-bundle restart invoked"; fi'