HaproxyInstall

class playback.haproxy_install.HaproxyInstall(user='ubuntu', hosts=None, key_filename=None, password=None, parallel=True, *args, **kwargs)

Bases: playback.common.Common

HAProxy and Keepalived Installation

Parameters:
  • user(str) – the user for remote server to login
  • hosts(list) – this is a second param
  • key_filename(str) – the ssh private key to used, default None
  • password(str) – the password for remote server
  • parallel(bool) – paralleler execute on remote server, default True
Returns:

None

Examples:
# create an haproxy instance
haproxy = HaproxyInstall(user='ubuntu', hosts=['haproxy1', 'haproxy2'])

# install haproxy on haproxy1 and haproxy2
haproxy.install()
install()

Install HAProxy and Keepalived

Returns:None