
* For consistency with other packages, LBaaS-interface package and HAProxy-based-LBaaS are moved to 'package' folder Change-Id: I577f4c669a9c96b1c36f4a93bae14dc323e51d78
16 lines
292 B
Bash
Executable File
16 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo add-apt-repository ppa:vbernat/haproxy-1.5 -y
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install -y haproxy
|
|
|
|
# Enabling HAProxy.
|
|
sudo sed -i 's/^ENABLED=.*/ENABLED=1/' /etc/default/haproxy
|
|
|
|
sudo chown -R "$USER:$USER" /etc/haproxy
|
|
|
|
# Starting HAProxy.
|
|
#sudo service haproxy restart
|
|
|