Example #1
0
def acs_init_azconfig():
    az_tools.config = az_tools.init_config()
    az_tools.config["azure_cluster"]["cluster_name"] = config["cluster_name"]
    az_tools.config["azure_cluster"]["azure_location"] = config[
        "cluster_location"]
    az_tools.config = az_tools.update_config(az_tools.config, False)
    if not "resource_group" in config:
        config["resource_group"] = az_tools.config["azure_cluster"][
            "resource_group_name"]
Example #2
0
def acs_generate_azconfig():
    az_tools.config = az_tools.init_config()
    az_tools.config["azure_cluster"]["cluster_name"] = config["cluster_name"]
    az_tools.config["azure_cluster"]["azure_location"] = config[
        "cluster_location"]
    az_tools.config = az_tools.update_config(az_tools.config, False)
    if not "resource_group" in config:
        config["resource_group"] = az_tools.config["azure_cluster"][
            "resource_group_name"]
    if "resource_group" in config:
        acs_set_resource_grp(False)
        az_tools.config["azure_cluster"]["resource_group_name"] = config[
            "resource_group"]
    return az_tools.gen_cluster_config("", False)