diff --git a/dev/mysiteid4/.gitignore b/dev/mysiteid4/.gitignore new file mode 100644 index 0000000..34a308b --- /dev/null +++ b/dev/mysiteid4/.gitignore @@ -0,0 +1 @@ +*.tfvars \ No newline at end of file diff --git a/dev/mysiteid4/backend.tf b/dev/mysiteid4/backend.tf new file mode 100644 index 0000000..b04a00d --- /dev/null +++ b/dev/mysiteid4/backend.tf @@ -0,0 +1,10 @@ +terraform { + backend "azurerm" { + resource_group_name = "runyutestiac" + storage_account_name = "runyutestiacsa" + container_name = "runyutestiaccontainer" + key = "mysiteid4.tfstate" + use_azuread_auth = true + subscription_id = "de3c4d5e-af08-451a-a873-438d86ab6f4b" + } +} diff --git a/dev/mysiteid4/imports.tf b/dev/mysiteid4/imports.tf new file mode 100644 index 0000000..e69de29 diff --git a/dev/mysiteid4/main.tf b/dev/mysiteid4/main.tf new file mode 100644 index 0000000..1fb1378 --- /dev/null +++ b/dev/mysiteid4/main.tf @@ -0,0 +1,70 @@ +module "base" { + source = "../../modules/runyutesttemplate" + location = "eastus" + site_id = basename(abspath(path.module)) + domain_fqdn = "jumpstart.local" + starting_address = "192.168.1.55" + ending_address = "192.168.1.65" + default_gateway = "192.168.1.1" + dns_servers = ["192.168.1.254"] + adou_suffix = "DC=jumpstart,DC=local" + dc_ip = "192.168.1.100" + servers = [ + { + name = "HOST1", + ipv4Address = "192.168.1.12" + }, + { + name = "HOST2", + ipv4Address = "192.168.1.13" + } + ] + management_adapters = ["FABRIC", "FABRIC2"] + storage_networks = [ + { + name = "Storage1Network", + networkAdapterName = "StorageA", + vlanId = "711" + }, + { + name = "Storage2Network", + networkAdapterName = "StorageB", + vlanId = "712" + } + ] + rdma_enabled = false // Change to true if RDMA is enabled. + storage_connectivity_switchless = false // Change to true if storage connectivity is switchless. + enable_provisioners = true // Change to false when Arc servers are connected by yourself. + authentication_method = "Credssp" // or "Default" + subscription_id = var.subscription_id + domain_admin_user = var.domain_admin_user + domain_admin_password = var.domain_admin_password + local_admin_user = var.local_admin_user + local_admin_password = var.local_admin_password + deployment_user_password = var.deployment_user_password + service_principal_id = var.service_principal_id + service_principal_secret = var.service_principal_secret + rp_service_principal_object_id = var.rp_service_principal_object_id + + # Region HCI logical network parameters + lnet_starting_address = "192.168.1.171" + lnet_ending_address = "192.168.1.190" # This IP range should not overlap with HCI infra IP range. + lnet_address_prefix = "192.168.1.0/24" # E.g., 192.168.1.0/24 + lnet_default_gateway = "192.168.1.1" # Default gateway can be same as HCI infra default gateway. + lnet_dns_servers = ["192.168.1.254"] # DNS servers can be same as HCI infra DNS servers. + + # Region AKS Arc parameters + aks_arc_control_plane_ip = "192.168.1.190" # An IP address in the logical network IP range. + rbac_admin_group_object_ids = ["11111111-6655-4844-9922-030049995000"] # An AAD group that will have the admin permission of this AKS Arc cluster. Check ./doc/AKS-Arc-Admin-Groups.md for details + + # Region HCI VM parameters + # Uncomment this section will create a windows server VM on HCI. + # download_win_server_image = true + # vm_admin_password = var.vm_admin_password + # domain_join_password = var.domain_join_password + + # Region site manager parameters + # Uncomment this section will create site manager instance for the resource group. + # Check ./doc/Add-Site-Manager.md for more information + # country = "" +} diff --git a/dev/mysiteid4/provider.tf b/dev/mysiteid4/provider.tf new file mode 100644 index 0000000..ea131dc --- /dev/null +++ b/dev/mysiteid4/provider.tf @@ -0,0 +1,9 @@ +provider "azurerm" { + features { + } + subscription_id = var.subscription_id +} + +provider "azapi" { + subscription_id = var.subscription_id +} diff --git a/dev/mysiteid4/terraform.tf b/dev/mysiteid4/terraform.tf new file mode 100644 index 0000000..e4f7bbb --- /dev/null +++ b/dev/mysiteid4/terraform.tf @@ -0,0 +1,15 @@ +terraform { + required_providers { + azurerm = { + source = "hashicorp/azurerm" + version = "~>3.0" + } + random = { + source = "hashicorp/random" + version = "~>3.0" + } + azapi = { + source = "azure/azapi" + } + } +} diff --git a/dev/mysiteid4/variables.tf b/dev/mysiteid4/variables.tf new file mode 100644 index 0000000..9d38a1b --- /dev/null +++ b/dev/mysiteid4/variables.tf @@ -0,0 +1,66 @@ +variable "subscription_id" { + description = "The subscription id to register this environment." + type = string +} + +variable "local_admin_user" { + description = "The username of the local administrator account." + sensitive = true + type = string +} + +variable "local_admin_password" { + description = "The password of the local administrator account." + sensitive = true + type = string +} + +variable "domain_admin_user" { + description = "The username of the domain account." + sensitive = true + type = string +} + +variable "domain_admin_password" { + description = "The password of the domain account." + sensitive = true + type = string +} + +variable "deployment_user_password" { + sensitive = true + type = string + description = "The password for deployment user." +} + +variable "service_principal_id" { + description = "The id of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "service_principal_secret" { + description = "The secret of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "rp_service_principal_object_id" { + default = "" + type = string + description = "The object ID of the HCI resource provider service principal." +} + +variable "vm_admin_password" { + description = "Admin password for the VM" + type = string + sensitive = true + default = "" +} + +variable "domain_join_password" { + description = "Password of User with permissions to join the domain." + type = string + sensitive = true + default = "" +} diff --git a/qa/mysiteid2/.gitignore b/qa/mysiteid2/.gitignore new file mode 100644 index 0000000..34a308b --- /dev/null +++ b/qa/mysiteid2/.gitignore @@ -0,0 +1 @@ +*.tfvars \ No newline at end of file diff --git a/qa/mysiteid2/backend.tf b/qa/mysiteid2/backend.tf new file mode 100644 index 0000000..db23628 --- /dev/null +++ b/qa/mysiteid2/backend.tf @@ -0,0 +1,10 @@ +terraform { + backend "azurerm" { + resource_group_name = "runyutestiac" + storage_account_name = "runyutestiacsa" + container_name = "runyutestiaccontainer" + key = "mysiteid2.tfstate" + use_azuread_auth = true + subscription_id = "de3c4d5e-af08-451a-a873-438d86ab6f4b" + } +} diff --git a/qa/mysiteid2/imports.tf b/qa/mysiteid2/imports.tf new file mode 100644 index 0000000..e69de29 diff --git a/qa/mysiteid2/main.tf b/qa/mysiteid2/main.tf new file mode 100644 index 0000000..1fb1378 --- /dev/null +++ b/qa/mysiteid2/main.tf @@ -0,0 +1,70 @@ +module "base" { + source = "../../modules/runyutesttemplate" + location = "eastus" + site_id = basename(abspath(path.module)) + domain_fqdn = "jumpstart.local" + starting_address = "192.168.1.55" + ending_address = "192.168.1.65" + default_gateway = "192.168.1.1" + dns_servers = ["192.168.1.254"] + adou_suffix = "DC=jumpstart,DC=local" + dc_ip = "192.168.1.100" + servers = [ + { + name = "HOST1", + ipv4Address = "192.168.1.12" + }, + { + name = "HOST2", + ipv4Address = "192.168.1.13" + } + ] + management_adapters = ["FABRIC", "FABRIC2"] + storage_networks = [ + { + name = "Storage1Network", + networkAdapterName = "StorageA", + vlanId = "711" + }, + { + name = "Storage2Network", + networkAdapterName = "StorageB", + vlanId = "712" + } + ] + rdma_enabled = false // Change to true if RDMA is enabled. + storage_connectivity_switchless = false // Change to true if storage connectivity is switchless. + enable_provisioners = true // Change to false when Arc servers are connected by yourself. + authentication_method = "Credssp" // or "Default" + subscription_id = var.subscription_id + domain_admin_user = var.domain_admin_user + domain_admin_password = var.domain_admin_password + local_admin_user = var.local_admin_user + local_admin_password = var.local_admin_password + deployment_user_password = var.deployment_user_password + service_principal_id = var.service_principal_id + service_principal_secret = var.service_principal_secret + rp_service_principal_object_id = var.rp_service_principal_object_id + + # Region HCI logical network parameters + lnet_starting_address = "192.168.1.171" + lnet_ending_address = "192.168.1.190" # This IP range should not overlap with HCI infra IP range. + lnet_address_prefix = "192.168.1.0/24" # E.g., 192.168.1.0/24 + lnet_default_gateway = "192.168.1.1" # Default gateway can be same as HCI infra default gateway. + lnet_dns_servers = ["192.168.1.254"] # DNS servers can be same as HCI infra DNS servers. + + # Region AKS Arc parameters + aks_arc_control_plane_ip = "192.168.1.190" # An IP address in the logical network IP range. + rbac_admin_group_object_ids = ["11111111-6655-4844-9922-030049995000"] # An AAD group that will have the admin permission of this AKS Arc cluster. Check ./doc/AKS-Arc-Admin-Groups.md for details + + # Region HCI VM parameters + # Uncomment this section will create a windows server VM on HCI. + # download_win_server_image = true + # vm_admin_password = var.vm_admin_password + # domain_join_password = var.domain_join_password + + # Region site manager parameters + # Uncomment this section will create site manager instance for the resource group. + # Check ./doc/Add-Site-Manager.md for more information + # country = "" +} diff --git a/qa/mysiteid2/provider.tf b/qa/mysiteid2/provider.tf new file mode 100644 index 0000000..ea131dc --- /dev/null +++ b/qa/mysiteid2/provider.tf @@ -0,0 +1,9 @@ +provider "azurerm" { + features { + } + subscription_id = var.subscription_id +} + +provider "azapi" { + subscription_id = var.subscription_id +} diff --git a/qa/mysiteid2/terraform.tf b/qa/mysiteid2/terraform.tf new file mode 100644 index 0000000..e4f7bbb --- /dev/null +++ b/qa/mysiteid2/terraform.tf @@ -0,0 +1,15 @@ +terraform { + required_providers { + azurerm = { + source = "hashicorp/azurerm" + version = "~>3.0" + } + random = { + source = "hashicorp/random" + version = "~>3.0" + } + azapi = { + source = "azure/azapi" + } + } +} diff --git a/qa/mysiteid2/variables.tf b/qa/mysiteid2/variables.tf new file mode 100644 index 0000000..9d38a1b --- /dev/null +++ b/qa/mysiteid2/variables.tf @@ -0,0 +1,66 @@ +variable "subscription_id" { + description = "The subscription id to register this environment." + type = string +} + +variable "local_admin_user" { + description = "The username of the local administrator account." + sensitive = true + type = string +} + +variable "local_admin_password" { + description = "The password of the local administrator account." + sensitive = true + type = string +} + +variable "domain_admin_user" { + description = "The username of the domain account." + sensitive = true + type = string +} + +variable "domain_admin_password" { + description = "The password of the domain account." + sensitive = true + type = string +} + +variable "deployment_user_password" { + sensitive = true + type = string + description = "The password for deployment user." +} + +variable "service_principal_id" { + description = "The id of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "service_principal_secret" { + description = "The secret of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "rp_service_principal_object_id" { + default = "" + type = string + description = "The object ID of the HCI resource provider service principal." +} + +variable "vm_admin_password" { + description = "Admin password for the VM" + type = string + sensitive = true + default = "" +} + +variable "domain_join_password" { + description = "Password of User with permissions to join the domain." + type = string + sensitive = true + default = "" +} diff --git a/qa/mysiteid3/.gitignore b/qa/mysiteid3/.gitignore new file mode 100644 index 0000000..34a308b --- /dev/null +++ b/qa/mysiteid3/.gitignore @@ -0,0 +1 @@ +*.tfvars \ No newline at end of file diff --git a/qa/mysiteid3/backend.tf b/qa/mysiteid3/backend.tf new file mode 100644 index 0000000..b82c9f5 --- /dev/null +++ b/qa/mysiteid3/backend.tf @@ -0,0 +1,10 @@ +terraform { + backend "azurerm" { + resource_group_name = "runyutestiac" + storage_account_name = "runyutestiacsa" + container_name = "runyutestiaccontainer" + key = "mysiteid3.tfstate" + use_azuread_auth = true + subscription_id = "de3c4d5e-af08-451a-a873-438d86ab6f4b" + } +} diff --git a/qa/mysiteid3/imports.tf b/qa/mysiteid3/imports.tf new file mode 100644 index 0000000..e69de29 diff --git a/qa/mysiteid3/main.tf b/qa/mysiteid3/main.tf new file mode 100644 index 0000000..1fb1378 --- /dev/null +++ b/qa/mysiteid3/main.tf @@ -0,0 +1,70 @@ +module "base" { + source = "../../modules/runyutesttemplate" + location = "eastus" + site_id = basename(abspath(path.module)) + domain_fqdn = "jumpstart.local" + starting_address = "192.168.1.55" + ending_address = "192.168.1.65" + default_gateway = "192.168.1.1" + dns_servers = ["192.168.1.254"] + adou_suffix = "DC=jumpstart,DC=local" + dc_ip = "192.168.1.100" + servers = [ + { + name = "HOST1", + ipv4Address = "192.168.1.12" + }, + { + name = "HOST2", + ipv4Address = "192.168.1.13" + } + ] + management_adapters = ["FABRIC", "FABRIC2"] + storage_networks = [ + { + name = "Storage1Network", + networkAdapterName = "StorageA", + vlanId = "711" + }, + { + name = "Storage2Network", + networkAdapterName = "StorageB", + vlanId = "712" + } + ] + rdma_enabled = false // Change to true if RDMA is enabled. + storage_connectivity_switchless = false // Change to true if storage connectivity is switchless. + enable_provisioners = true // Change to false when Arc servers are connected by yourself. + authentication_method = "Credssp" // or "Default" + subscription_id = var.subscription_id + domain_admin_user = var.domain_admin_user + domain_admin_password = var.domain_admin_password + local_admin_user = var.local_admin_user + local_admin_password = var.local_admin_password + deployment_user_password = var.deployment_user_password + service_principal_id = var.service_principal_id + service_principal_secret = var.service_principal_secret + rp_service_principal_object_id = var.rp_service_principal_object_id + + # Region HCI logical network parameters + lnet_starting_address = "192.168.1.171" + lnet_ending_address = "192.168.1.190" # This IP range should not overlap with HCI infra IP range. + lnet_address_prefix = "192.168.1.0/24" # E.g., 192.168.1.0/24 + lnet_default_gateway = "192.168.1.1" # Default gateway can be same as HCI infra default gateway. + lnet_dns_servers = ["192.168.1.254"] # DNS servers can be same as HCI infra DNS servers. + + # Region AKS Arc parameters + aks_arc_control_plane_ip = "192.168.1.190" # An IP address in the logical network IP range. + rbac_admin_group_object_ids = ["11111111-6655-4844-9922-030049995000"] # An AAD group that will have the admin permission of this AKS Arc cluster. Check ./doc/AKS-Arc-Admin-Groups.md for details + + # Region HCI VM parameters + # Uncomment this section will create a windows server VM on HCI. + # download_win_server_image = true + # vm_admin_password = var.vm_admin_password + # domain_join_password = var.domain_join_password + + # Region site manager parameters + # Uncomment this section will create site manager instance for the resource group. + # Check ./doc/Add-Site-Manager.md for more information + # country = "" +} diff --git a/qa/mysiteid3/provider.tf b/qa/mysiteid3/provider.tf new file mode 100644 index 0000000..ea131dc --- /dev/null +++ b/qa/mysiteid3/provider.tf @@ -0,0 +1,9 @@ +provider "azurerm" { + features { + } + subscription_id = var.subscription_id +} + +provider "azapi" { + subscription_id = var.subscription_id +} diff --git a/qa/mysiteid3/terraform.tf b/qa/mysiteid3/terraform.tf new file mode 100644 index 0000000..e4f7bbb --- /dev/null +++ b/qa/mysiteid3/terraform.tf @@ -0,0 +1,15 @@ +terraform { + required_providers { + azurerm = { + source = "hashicorp/azurerm" + version = "~>3.0" + } + random = { + source = "hashicorp/random" + version = "~>3.0" + } + azapi = { + source = "azure/azapi" + } + } +} diff --git a/qa/mysiteid3/variables.tf b/qa/mysiteid3/variables.tf new file mode 100644 index 0000000..9d38a1b --- /dev/null +++ b/qa/mysiteid3/variables.tf @@ -0,0 +1,66 @@ +variable "subscription_id" { + description = "The subscription id to register this environment." + type = string +} + +variable "local_admin_user" { + description = "The username of the local administrator account." + sensitive = true + type = string +} + +variable "local_admin_password" { + description = "The password of the local administrator account." + sensitive = true + type = string +} + +variable "domain_admin_user" { + description = "The username of the domain account." + sensitive = true + type = string +} + +variable "domain_admin_password" { + description = "The password of the domain account." + sensitive = true + type = string +} + +variable "deployment_user_password" { + sensitive = true + type = string + description = "The password for deployment user." +} + +variable "service_principal_id" { + description = "The id of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "service_principal_secret" { + description = "The secret of service principal to create hci cluster." + sensitive = true + type = string +} + +variable "rp_service_principal_object_id" { + default = "" + type = string + description = "The object ID of the HCI resource provider service principal." +} + +variable "vm_admin_password" { + description = "Admin password for the VM" + type = string + sensitive = true + default = "" +} + +variable "domain_join_password" { + description = "Password of User with permissions to join the domain." + type = string + sensitive = true + default = "" +}