def mon(self): mon1 = Machines('10.8.128.77', 'magna077') mon2 = Machines('10.8.128.52', 'magna052') mon3 = Machines('10.8.128.80', 'magna080') return mon1, mon2, mon3
def mon(self): mon1 = Machines("10.8.128.77", "magna077") mon2 = Machines("10.8.128.52", "magna052") mon3 = Machines("10.8.128.80", "magna080") return mon1, mon2, mon3
def get_osds(self): # example osd1 = Machines("10.8.128.16", "magna016") osd2 = Machines("10.8.128.21", "magna021") osd3 = Machines("10.8.128.27", "magna027") return osd1, osd2, osd3
def get_osds(self): # example osd1 = Machines('10.8.128.16', 'magna016') osd2 = Machines('10.8.128.21', 'magna021') osd3 = Machines('10.8.128.27', 'magna027') return osd1, osd2, osd3
def get_osds(self): # example osd1 = Machines('10.8.128.67', 'magna067') osd2 = Machines('10.8.128.77', 'magna077') osd3 = Machines('10.8.128.98', 'magna098') return osd1, osd2, osd3
def get_osds(self): # example osd1 = Machines("10.8.128.67", "magna067") osd2 = Machines("10.8.128.77", "magna077") osd3 = Machines("10.8.128.98", "magna098") return osd1, osd2, osd3
def get_mons(self): # example mon = [] mon.append(Machines("10.8.128.15", "magna015")) # mon.append(Machines('10.8.128.15', 'magna015')) Example return mon
def get_mons(self): # example mon1 = [] mon1[0] = Machines('10.8.128.47', 'magna047') # mon2 = Machines('10.8.128.52', 'magna052') # mon3 = Machines('10.8.128.58', 'magna058') return mon1
def make_machines(machines): machine_list = machines.split(" ") print machine_list machines = [] for each_machine in machine_list: temp = each_machine.split("-") machines.append(Machines(temp[0], temp[1])) return machines
def get_admin(self): # example admin_node = Machines("10.8.128.12", "magna012") return admin_node
def get_admin(self): # example admin_node = Machines('10.8.128.12', 'magna012') return admin_node
def admin(self): admin_node = Machines("10.8.128.77", "magna077") return admin_node
def osd(self): osd1 = Machines("10.8.128.77", "magna077") osd2 = Machines("10.8.128.52", "magna052") osd3 = Machines("10.8.128.80", "magna080") return osd1, osd2, osd3
def admin(self): admin_node = Machines('10.8.128.77', 'magna077') return admin_node
def osd(self): osd1 = Machines('10.8.128.77', 'magna077') osd2 = Machines('10.8.128.52', 'magna052') osd3 = Machines('10.8.128.80', 'magna080') return osd1, osd2, osd3