Logo Search packages:      
Sourcecode: orchestra version File versions  Download package

remove-machines.py

import os
fp = open("machines.list")
domain = "local.domain"
for machine in fp.readlines():
    print "DEBUG: Removing [%s]" % machine.split()[0]
    os.system('sudo cobbler system remove --name="%s.%s"' % (machine.split()[0], domain))
fp.close

Generated by  Doxygen 1.6.0   Back to index