Esempio n. 1
0
    def __init__(self, all_args=None, runner_cfg=None):

        SkyTask.__init__(self, all_args, runner_cfg)
        # set the full name of the task 'group.command'
        self.name = 'reference.test'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 2
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'user.list'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.username = self.args.get('username')
Esempio n. 3
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = "user.list"
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.username = self.args.get("username")
Esempio n. 4
0
    def __init__(self, all_args=None, runner_cfg=None):

        SkyTask.__init__(self, all_args, runner_cfg)
        # set the full name of the task 'group.command'
        self.name = 'reference.test'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 5
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'planet.describe'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.planet = None
Esempio n. 6
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.single_template'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 7
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.full_standard'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 8
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'service.delete_stacks_state'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.planet = None
     self.runtime = SkyRuntime(apply=all_args.get('apply', False))
Esempio n. 9
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.single_template'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 10
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)

        #self.logger = Logger(logging.getLogger(__name__), logging.INFO)

        self.name = 'render.full_standard'
        self.args = all_args
        self.runner_cfg = runner_cfg
Esempio n. 11
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.record_state'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.planet = None
        self.stacks = self.args['stacks']
Esempio n. 12
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.record_state'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.planet = None
        self.stacks = self.args['stacks']
Esempio n. 13
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.delete'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
Esempio n. 14
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'state.read'
     self.args = all_args
     self.runner_cfg = runner_cfg
     self.mode = self.args.get('exec_mode')
     self.format = self.args.get('format')
     self.id = self.args.get('skybase_id')
Esempio n. 15
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.update'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
        self.role = self.args.get('role')
        self.email = self.args.get('email')
Esempio n. 16
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.reset_secret'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.apply = self.args.get('apply')

        # initialize command options as attributes
        self.username = self.args.get('username')
        # if --secret not provide, generate a new one
        self.secret = self.args.get('secret')
Esempio n. 17
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'user.add'
        self.args = all_args
        self.runner_cfg = runner_cfg

        self.apply = self.args.get('apply')
        self.username = self.args.get('username')
        self.role = self.args.get('role')
        self.email = self.args.get('email')
        self.secret = self.args.get('secret')
Esempio n. 18
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.delete_stacks'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.planet = None

        # create runtime object with command options
        self.runtime = SkyRuntime(tag=all_args.get('tag'),
                                  apply=all_args.get('apply', False))

        # initialize stack deletion process drivers
        self.stack_deletion_list = []
        self.stack_deletion_info = dict()
Esempio n. 19
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.deploy'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.planet = None
        self.service = None

        # create runtime object with command options
        self.runtime = SkyRuntime(tag=all_args.get('tag'),
                                  apply=all_args.get('apply', False))

        self.system = SkySystem()
Esempio n. 20
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.delete_stacks'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.planet = None

        # create runtime object with command options
        self.runtime = SkyRuntime(
            tag=all_args.get('tag'),
            apply=all_args.get('apply', False))

        # initialize stack deletion process drivers
        self.stack_deletion_list = []
        self.stack_deletion_info = dict()
Esempio n. 21
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.deploy'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.planet = None
        self.service = None

        # create runtime object with command options
        self.runtime = SkyRuntime(
            tag=all_args.get('tag'),
            apply=all_args.get('apply', False))

        self.system = SkySystem()
Esempio n. 22
0
    def __init__(self, all_args, runner_cfg):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'pack.submit'
        self.args = all_args
        self.runner_cfg = runner_cfg
        self.aws_access_key_id = None
        self.aws_secret_access_key = None

        if self.args['base_dir']:
            self.base_dir = self.args['base_dir']
            if self.base_dir.split('/')[-1] is not 'skybase':
                self.base_dir = os.path.join(self.base_dir, 'skybase')
        else:
            self.tdir = tempfile.mkdtemp()
            self.base_dir = os.path.join(self.tdir, 'skybase')
        self.tmp_dir = os.path.join(self.base_dir, 'tmp')
        if not os.path.exists(self.tmp_dir):
            os.makedirs(self.tmp_dir)
Esempio n. 23
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = "service.update"
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.mode = self.args.get("exec_mode", False)
        self.runtime = SkyRuntime(apply=self.args.get("apply", False))
        self.system = SkySystem()
        self.chef_type = None

        self.id = self.args.get("skybase_id")
        self.target_service = None
        self.target_planet = None

        self.source_artiball = self.args.get("source_artiball")
        self.source_service = None

        self.planet_name = self.args.get("planet_name")
        self.planet = None

        self.update_plan = self.args.get("update_plan")
Esempio n. 24
0
    def __init__(self, all_args=None, runner_cfg=None):
        SkyTask.__init__(self, all_args, runner_cfg)
        self.logger = Logger(logging.getLogger(__name__), logging.INFO)
        self.name = 'service.update'
        self.args = all_args
        self.runner_cfg = runner_cfg

        # required attributes derived from command arguments
        self.mode = self.args.get('exec_mode', False)
        self.runtime = SkyRuntime(apply=self.args.get('apply', False))
        self.system = SkySystem()
        self.chef_type = None

        self.id = self.args.get('skybase_id')
        self.target_service = None
        self.target_planet = None

        self.source_artiball = self.args.get('source_artiball')
        self.source_service = None

        self.planet_name = self.args.get('planet_name')
        self.planet = None

        self.update_plan = self.args.get('update_plan')
Esempio n. 25
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'service.get_ips'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 26
0
 def __init__(self, all_args, runner_cfg):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = "pack.upload"
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 27
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.WARNING)
     self.name = 'pack.create'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 28
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__))
     self.name = 'chef.delete_node'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 29
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__))
     self.name = 'chef.delete_node'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 30
0
 def __init__(self, all_args, runner_cfg):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'pack.upload'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 31
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'route.ping'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 32
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.WARNING)
     self.name = 'pack.create'
     self.args = all_args
     self.runner_cfg = runner_cfg
Esempio n. 33
0
 def __init__(self, all_args=None, runner_cfg=None):
     SkyTask.__init__(self, all_args, runner_cfg)
     self.logger = Logger(logging.getLogger(__name__), logging.INFO)
     self.name = 'chef.update_cookbooks'
     self.args = all_args
     self.runner_cfg = runner_cfg