def run(self): self.process_delegate_list() for d in self.args.delegate_list: log.info("Installing cluster for delegate {}".format(d)) d = Delegate(self.args, d) d.install(dry_run=self.args.dry_run) if self.args.master: d = Delegate(self.args, 0) log.info("Polling for Salt Master public IP") while not d.probe(): time.sleep(5)
def run(self): level = logging.WARNING logging.getLogger('handson').setLevel(level) delegates = handson.myyaml.stanza('delegates') for d in range(0, delegates + 1): delegate_obj = Delegate(self.args, d) public_ips = delegate_obj.public_ips() if public_ips is None: continue if 'admin' in public_ips: print("Delegate {}, role {}, public IP {}".format( d, 'admin', public_ips['admin'])) if 'windows' in public_ips: print("Delegate {}, role {}, public IP {}".format( d, 'windows', public_ips['admin'])) print
def run(self): delegates = handson.myyaml.stanza('delegates') for d in range(0, delegates + 1): delegate_obj = Delegate(self.args, d) delegate_obj.probe()
def run(self): self.process_delegate_list() for d in self.args.delegate_list: log.info("Stopping cluster for delegate {}".format(d)) d = Delegate(self.args, d) d.stop(dry_run=self.args.dry_run)
def run(self): self.process_delegate_list() for d in self.args.delegate_list: log.info("Wiping out cluster for delegate {}".format(d)) d = Delegate(self.args, d) d.wipeout(dry_run=self.args.dry_run)