Beispiel #1
0
 def __init__(self, args, delegate):
     super(Delegate, self).__init__(args)
     self.args = args
     k = Keypair(self.args, delegate)
     k.keypair_obj(import_ok=True, dry_run=self.args.dry_run)
     s = Subnet(self.args, delegate)
     s_obj = s.subnet_obj(create=True, dry_run=self.args.dry_run)
     ec2 = self.ec2()
     self._delegate = {
         'delegate': delegate,
         'ec2': ec2,
         'keyname': k.get_keyname_from_yaml(),
         'roles': {},
         'subnet_obj': s_obj,
     }
Beispiel #2
0
 def __init__(self, args, delegate):
     super(Delegate, self).__init__(args)
     self.args = args
     k = Keypair(self.args, delegate)
     k.keypair_obj(import_ok=True, dry_run=self.args.dry_run)
     s = Subnet(self.args, delegate)
     s_obj = s.subnet_obj(create=True, dry_run=self.args.dry_run)
     ec2 = self.ec2()
     self._delegate = {
         "delegate": delegate,
         "ec2": ec2,
         "keyname": k.get_keyname_from_yaml(),
         "roles": {},
         "subnet_obj": s_obj,
     }
Beispiel #3
0
 def run(self):
     self.process_delegate_list()
     for d in self.args.delegate_list:
         k = Keypair(self.args, d)
         k.keypair_obj(import_ok=True, dry_run=self.args.dry_run)
Beispiel #4
0
 def run(self):
     self.process_delegate_list()
     for d in self.args.delegate_list:
         k = Keypair(self.args, d)
         k.keypair_obj(import_ok=True, dry_run=self.args.dry_run)