Restart apache2 on SSL certificate change

This patchset implements a logic to restart apache2 on SSL
certificate change.

Change-Id: I9904a92feeee64233f3d07c26ca8dd60920feeb0
Closes-Bug: #1745985
This commit is contained in:
Tytus Kurek 2018-02-14 15:08:23 +01:00
parent 1ca4bd0ab9
commit e2f2d9ea2f
1 changed files with 1 additions and 0 deletions

View File

@ -656,6 +656,7 @@ class HAOpenStackCharm(OpenStackAPICharm):
if not os_utils.snap_install_requested():
self.configure_apache()
ch_host.service_reload('apache2')
self.remove_state('ssl.requested')
self.set_state('ssl.enabled', True)