Horizon

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

Bases: playback.common.Common

Install horizon

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 a horizon instance
horizon = Horizon(user='ubuntu', hosts=['controller1', 'controller2'])
horizon.install(
    openstack_host='192.168.1.1',
    memcached_servers='controller1',
    time_zone='America/New_York'
)
install(*args, **kwargs)

Install horizon

Parameters:
  • openstack_host – configure the dashboard to use OpenStack services on the controller node e.g. CONTROLLER_VIP
  • memcached_servers – django memcache e.g. CONTROLLER1:11211,CONTROLLER2:11211
  • time_zone – the timezone of the server. This should correspond with the timezone of your entire OpenStack installation e.g. America/New_York
Returns:

None