Esempio n. 1
0
    def _accept_key(self):
        log.info('Accepting minion key (%s)...' % self.fqdn)

        success = False
        for _ in xrange(30):
            result = wheel_client().call_func('key.accept', match=self.fqdn)
            if result != {}:
                success = True
                break
            time.sleep(2.0)

        if success:
            log.info('Accepted minion key')
        else:
            raise Exception('failed to accept minion key')
Esempio n. 2
0
    def _accept_key(self):
        log.info('Accepting minion key (%s)...' % self.fqdn)

        success = False
        for _ in xrange(30):
            result = wheel_client().call_func('key.accept', match=self.fqdn)
            if result != {}:
                success = True
                break
            time.sleep(2.0)

        if success:
            log.info('Accepted minion key')
        else:
            raise Exception('failed to accept minion key')
Esempio n. 3
0
 def _delete_key(self):
     wheel_client().call_func('key.delete', match=self.fqdn)
Esempio n. 4
0
 def _delete_key(self):
     wheel_client().call_func('key.delete', match=self.fqdn)