Esempio n. 1
0
 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)
Esempio n. 2
0
 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
Esempio n. 3
0
 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)
Esempio n. 4
0
 def run(self):
     delegates = handson.myyaml.stanza('delegates')
     for d in range(0, delegates + 1):
         delegate_obj = Delegate(self.args, d)
         delegate_obj.probe()
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)
Esempio n. 7
0
 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)
Esempio n. 8
0
 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)