Example #1
0
 def uninstall(self):
     self.stop()
     OS.linux.Rpm("perl-TimeDate").uninstall()
     OS.linux.Rpm("PyXML").uninstall()
     OS.linux.Rpm("cluster-glue-libs").uninstall()
     OS.linux.Rpm("cluster-glue").uninstall()
     OS.linux.Rpm("resource-agents").uninstall()
     OS.linux.Rpm("heartbeat-libs").uninstall()
     OS.linux.Rpm("heartbeat").uninstall()
     if os.path.exists("/etc/ha.d"):
         File.remove("/etc/ha.d")    
Example #2
0
 def delete(self):
     self.stop()
     if sys.platform == "win32":
         run("sc delete %s" % self.name)
     elif sys.platform.startswith('linux'):
         svc_locate = "/etc/init.d/%s" % self.name
         if os.path.exists(svc_locate):
             File.remove(svc_locate)
         run("chkconfig --del" % self.name)
     else:
         pass
Example #3
0
 def uninstall(self):
     self.stop()
     OS.linux.Rpm("kmod-drbd84").uninstall()
     OS.linux.Rpm("drbd84-utils").uninstall()
     if os.path.exists("/etc/drbd.conf"):
         File.remove("/etc/drbd.conf")
Example #4
0
 def delete(self):
     os.system("chkconfig --del %s" % self.svc_name)
     if os.path.exists(self.svc_loct):
         fs.remove(self.svc_loct)