Esempio n. 1
0
    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
Esempio n. 4
0
    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
Esempio n. 5
0
    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
Esempio n. 6
0
    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
Esempio n. 8
0
    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
Esempio n. 9
0
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
Esempio n. 11
0
    def get_admin(self):

        # example

        admin_node = Machines('10.8.128.12', 'magna012')
        return admin_node
Esempio n. 12
0
    def admin(self):
        admin_node = Machines("10.8.128.77", "magna077")

        return admin_node
Esempio n. 13
0
    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
Esempio n. 14
0
    def admin(self):
        admin_node = Machines('10.8.128.77', 'magna077')

        return admin_node
Esempio n. 15
0
    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