rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
263 stars 228 forks source link

bump default azure image #1429

Closed skanakal closed 3 weeks ago

skanakal commented 1 month ago

Issue:

https://github.com/rancher/rancher/issues/44944 Standard_A2 is currently not available in location 'westus'

Problem

Solution

update the default azure image Change the default VM size, as the current size is unavailable in the default region (West US).

Testing

Engineering Testing

Manual Testing

Wed Oct 23 17:31:34 skanakala ☺ ❉ ~/Downloads/test sudo terraform show
# rancher2_cloud_credential.foo-aks:
resource "rancher2_cloud_credential" "foo-aks" {
    annotations = {}
    driver      = "azure"
    id          = "cattle-global-data:cc-fx6cx"
    labels      = {
        "cattle.io/creator" = "norman"
    }
    name        = "foo-aks"

    azure_credential_config {
        client_id       = (sensitive value)
        client_secret   = (sensitive value)
        environment     = "AzurePublicCloud"
        subscription_id = (sensitive value)
    }
}

# rancher2_node_template.foo:
resource "rancher2_node_template" "foo" {
    annotations             = {
        "ownerBindingsCreated" = "true"
    }
    cloud_credential_id     = "cattle-global-data:cc-fx6cx"
    description             = "foo test"
    driver                  = "azure"
    driver_id               = "azure"
    id                      = "cattle-global-nt:nt-7qr59"
    labels                  = {
        "cattle.io/creator" = "norman"
    }
    name                    = "foo"
    use_internal_ip_address = true

    azure_config {
        availability_set    = "docker-machine"
        disk_size           = "30"
        docker_port         = "2376"
        environment         = "AzurePublicCloud"
        fault_domain_count  = "3"
        image               = "canonical:ubuntu-24_04-lts:server-gen1:latest"
        location            = "westus"
        managed_disks       = false
        no_public_ip        = false
        nsg                 = "docker-machine-nsg"
        open_port           = []
        resource_group      = "docker-machine"
        size                = "Standard_D2_v2"
        ssh_user            = "docker-user"
        static_public_ip    = false
        storage_type        = "Standard_LRS"
        subnet              = "docker-machine"
        subnet_prefix       = "192.168.0.0/16"
        update_domain_count = "5"
        use_private_ip      = false
        vnet                = "docker-machine-vnet"
    }
}

Automated Testing

QA Testing Considerations

Regressions Considerations

matttrach commented 3 weeks ago

Does this need to be backported?