21.04.2015

testbed.py Juniper Contrail

[root@cfgm ~]# cat /opt/contrail/utils/fabfile/testbeds/testbed.py
from fabric.api import env

#Management ip addresses of hosts in the cluster
host1 = 'root@192.168.1.90'
host2 = 'root@192.168.1.91'
host3 = 'root@192.168.1.92'
host4 = 'root@192.168.1.93'
host5 = 'root@192.168.1.94'

#External routers if any
#for eg.
#ext_routers = [('mx1', '10.204.216.253')]
#ext_routers = []
ext_routers = [('mx1', '192.168.1.1')]

#Autonomous system number
router_asn = 64512

#Host from which the fab commands are triggered to install and provision
host_build = 'root@192.168.1.90'

#---------------
#Role for hosts
#---------------
env.roledefs = {
    'all': [host1, host2, host3, host4, host5],
    'cfgm': [host1],
    'openstack': [host1],
    'control': [host2, host3],
    'compute': [host4, host5],
    'collector': [host1],
    'webui': [host1],
    'database': [host1],
    'build': [host_build],
}

#Openstack admin password
env.openstack_admin_password = 'contrail123'

#Hostnames
env.hostnames = {
    'all': ['cfgm', 'control1', 'control2', 'compute1', 'compute2']
}

env.password = 'password'
#Passwords of each host
env.passwords = {
        host1: 'password',
        host2: 'password',
        host3: 'password',
        host4: 'password',
        host5: 'password',
        host_build: 'password',
}