Skip to content

Commit

Permalink
mitaka: stop apache2 before enabling haproxy
Browse files Browse the repository at this point in the history
In mitaka, barbican runs behind apache2 and listens on 9311;
stop apache2 before starting haproxy.
apache2 is restarted later from barbican-server-setup.sh after
updating secondary port in apache barbican conf file

Change-Id: I33d3b5aa94a6154ea73fb472099ca5ebe88de66d
Partial-Bug: #1582932
  • Loading branch information
Amudha committed Jul 21, 2016
1 parent 98d03bb commit 5adf01b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fabfile/tasks/ha.py
Expand Up @@ -536,6 +536,11 @@ def fixup_restart_haproxy_in_openstack_node(*args):

# haproxy enable
with settings(host_string=host_string, warn_only=True):
#In mitaka, barbican runs behind apache2 and listens on 9311;
#stop apache2 before starting haproxy
#apache2 is restarted later from barbican-server-setup.sh after
#updating secondary port in apache barbican conf file
sudo("service apache2 stop")
sudo("chkconfig haproxy on")
enable_haproxy()
sudo("service haproxy restart")
Expand Down

0 comments on commit 5adf01b

Please sign in to comment.