Skip to content

Supporting code for BlakYaks blog post on Azure Red Hat OpenShift

License

Notifications You must be signed in to change notification settings

blakyaks/aro-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aro-terraform

Example code to support our Deconstructing Azure Red Hat OpenShift Deployment blog.

Pre-Requisites

  • Ensure Azure CLI is installed and up-to-date;
  • Perform az login prior to executing Terraform code (or set environment variables to support the azurerm provider);
  • If using CLI context, ensure you have targeted the correct subscription using az account set --subscription <sub> prior to execution.

Requirements

Name Version
terraform >= 1.0.0
azuread >= 2.6.0
azurerm >= 2.75.0
random >= 3.1.0

Providers

Name Version
azuread 2.8.0
azurerm 2.84.0
random 3.1.0

Inputs

Name Description Type Default Required
aro_properties Deployment properties for the ARO cluster.
object({
version = optional(string)
public_cluster = optional(bool)
pod_cidr = optional(string)
service_cidr = optional(string)
master_node_sku = optional(string)
worker_node_sku = optional(string)
worker_node_disk_size = optional(number)
worker_node_count = optional(number)
worker_pool_name = optional(string)
})
{} no
domain_name The private DNS zone used for private ARO cluster names. string "" no
environment Environment identifier used in resource naming convention. string "dev" no
location Azure region for resource creation. string "UK South" no
network Parameters used in consruction of the ARO network resources.
object({
vnet_address_space = list(string)
master_subnet_cidr = list(number)
worker_subnet_cidr = list(number)
})
{
"master_subnet_cidr": [
1,
0
],
"vnet_address_space": [
"10.10.0.0/23"
],
"worker_subnet_cidr": [
1,
1
]
}
no
pull_secret_file Red Hat pull secret file for the ARO cluster. string "" no
tags A mapping of tags to assign to the resources. map(string)
{
"contact": "solutions@blakyaks.com",
"source": "https://github.com/blakyaks/aro-terraform"
}
no

Outputs

Name Description
api_address IPv4 address of the ARO API server
api_server_url The URL for the ARO API server
aro_password The administrative password for ARO
aro_username The administrative user account for ARO
ingress_address IPv4 address of the default ARO ingress route
web_console_url The URL for the ARO web console

Resources

Name Type
azuread_application.aro resource
azuread_application_password.aro resource
azuread_service_principal.aro resource
azurerm_resource_group.aro resource
azurerm_resource_group.net resource
azurerm_role_assignment.cluster_aro_vnet resource
azurerm_role_assignment.rp_aro_vnet resource
azurerm_subnet.master resource
azurerm_subnet.worker resource
azurerm_virtual_network.aro resource
random_string.id resource
azuread_service_principal.aro_rp data source

Modules

Name Source Version
aro ./modules/module_aro_arm n/a

About

Supporting code for BlakYaks blog post on Azure Red Hat OpenShift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages