Terraform-provider-azurerm: Support for Azure Red Hat OpenShift (ARO)

Created on 7 Jun 2019  路  6Comments  路  Source: terraform-providers/terraform-provider-azurerm

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Provide Azure Red Hat OpenShift (Managed service) ARM template.

New or Affected Resource(s)

  • azurerm_openshift_cluster

Potential Terraform Configuration

resource "azurerm_resource_group" "test" {
  name     = "acctestRG1"
  location = "East US"
}

resource "azurerm_openshift_cluster" "test" {
  name                = "acctestaro1"
  location            = "${azurerm_resource_group.test.location}"
  resource_group_name = "${azurerm_resource_group.test.name}"
  openshift_version   = "v3.11"

  network_profile {
    vnet_cidr = "10.0.0.0/8"
  }

  master_pool_profile {
    name        = "master"
    count       = 3
    vm_size     = "Standard_D4s_v3"
    os_type     = "Linux"
    subnet_cidr = "10.0.0.0/24"
  }

  agent_pool_profile {
    name        = "infra"
    role        = "infra"
    count       = 2
    vm_size     = "Standard_D4s_v3"
    os_type     = "Linux"
    subnet_cidr = "10.0.0.0/24"
  }

  agent_pool_profile {
    name        = "compute"
    role        = "compute"
    count       = 4
    vm_size     = "Standard_D4s_v3"
    os_type     = "Linux"
    subnet_cidr = "10.0.0.0/24"
  }

  router_profile {
    name = "default"
  }

  auth_profile {
    providers = [
      {
        name = "Azure AD"
        provider = {
          kind          = "AADIdentityProvider"
          client_id     = "00000000-0000-0000-0000-000000000000"
          client_secret = "00000000000000000000000000000000"
          group_id      = "00000000-0000-0000-0000-000000000000"
        }
      }
    ]
  }

  tags = {
    environment = "Production"
  }
}

References

new-resource servicopenshift

Most helpful comment

Man this would be amazing to have in the near future!!!

All 6 comments

@fernandoBRS what's the status of the WIP PR? Any updates?

Any updates on the WIP @fernandoBRS? Since the release of 4.3 yesterday this feature is a BIG want :)

I think the APIs are different enought that the new ARO (ocp 4.x) should be another resource

Man this would be amazing to have in the near future!!!

I need it! The closest approach is using a Deployment template but is not the same. This guy made a lot in this sense: https://github.com/aymenabdelwahed/ARO4-IaC

Was this page helpful?
0 / 5 - 0 ratings