Exemple #1
0
def build_sessions_for_pkg(pkg_meta, environment_name, lm_pwd=None, arm_name=None, config_path=None):
    lm_session = ctlmgmt.create_lm_session(environment_name, lm_pwd, config_path)
    if __has_arm_content(pkg_meta) and arm_name is not None:
        arm_session = ctlmgmt.create_arm_session(arm_name, environment_name, config_path)
    else:
        arm_session = None
    return EnvironmentSessions(lm_session, arm_session)
Exemple #2
0
def build_sessions_for_project(project_config,
                               environment_name,
                               lm_pwd=None,
                               arm_name=None,
                               config_path=None):
    lm_session = ctlmgmt.create_lm_session(environment_name, lm_pwd,
                                           config_path)
    if __has_arm_projects(project_config) and arm_name is not None:
        arm_session = ctlmgmt.create_arm_session(environment_name, arm_name,
                                                 config_path)
    else:
        arm_session = None
    return EnvironmentSessions(lm_session, arm_session)
Exemple #3
0
def get_ik_driver(environment_name, config_path, pwd):
    lm_session = ctlmgmt.create_lm_session(environment_name, pwd, config_path)
    return lm_session.infrastructure_keys_driver
def get_dl_driver(environment_name, config_path, pwd):
    lm_session = ctlmgmt.create_lm_session(environment_name, pwd, config_path)
    return lm_session.deployment_location_driver
Exemple #5
0
def get_vim_driver_mgmt_driver(environment_name, config_path, pwd):
    lm_session = ctlmgmt.create_lm_session(environment_name, pwd, config_path)
    return lm_session.vim_driver_mgmt_driver