def do_reload(self, context): ''' Reload the corosync configuration ''' return corosync.cfgtool('-R')[0] == 0
def do_status(self, context): ''' Quick cluster health status. Corosync status... ''' print corosync.cfgtool('-s')[1] print corosync.quorumtool('-s')[1]