Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

ml4/terraform-azurerm-n-tier-linux

Repository files navigation

terraform-azurerm-linux-vm

Terraform child module to manage creation of generic linux VMs.

Requirements

Name Version
terraform >= 0.15.4
azurerm >= 2.57.0

Providers

Name Version
azurerm >= 2.57.0
local n/a
template n/a

Modules

No modules.

Resources

Name Type
azurerm_linux_virtual_machine.app resource
azurerm_linux_virtual_machine.db resource
azurerm_linux_virtual_machine.web resource
azurerm_network_interface.app resource
azurerm_network_interface.db resource
azurerm_network_interface.web resource
azurerm_public_ip.app resource
azurerm_public_ip.db resource
azurerm_public_ip.web resource
azurerm_resource_group.app resource
azurerm_resource_group.db resource
azurerm_resource_group.web resource
local_file.app_startup_script resource
local_file.database_startup_script resource
local_file.web_startup_script resource
template_file.app_startup_script data source
template_file.database_startup_script data source
template_file.web_startup_script data source

Inputs

Name Description Type Default Required
app set to true to include app tier string false no
app_instance_config n/a
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "",
"admin_username": "rhel",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "RHEL",
"os_publisher": "RedHat",
"os_sku": "7_9",
"os_version": "7.9.2021051701",
"vm_name": "test-web"
}
no
app_startup_script n/a string "" no
common_tags (Optional) Map of common tags for taggable resources. map(string) {} no
database set to true to include database tier string false no
database_startup_script n/a string "" no
db_instance_config n/a
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "",
"admin_username": "rhel",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "RHEL",
"os_publisher": "RedHat",
"os_sku": "7_9",
"os_version": "7.9.2021051701",
"vm_name": "test-web"
}
no
disable_password_authentication Set password auth on or off. Needs to be false for admin_password to be set bool false no
location Location to deploy to string "West Europe" no
prefix Main prefix for all objects string n/a yes
rg_name Resource group name string n/a yes
subnet_id Subnet to deploy to string n/a yes
web set to true to include web tier string false no
web_instance_config // linuxvm related
object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
{
"admin_password": "",
"admin_username": "rhel",
"machine_size": "Standard_D2_v4",
"os_disk_storage_account_type": "Standard_LRS",
"os_offer": "RHEL",
"os_publisher": "RedHat",
"os_sku": "7_9",
"os_version": "7.9.2021051701",
"vm_name": "test-web"
}
no
web_startup_script // templates string "" no

Outputs

Name Description
database_startup_script startup script when instance boots
linuxvm-web-private_ip_address Azure Linux VM: Azure Linux VM Web Server private IP address
linuxvm-web-public_ip_address Azure Linux VM: Azure Linux VM Web Server public IP address
web_startup_script startup script when instance boots
windows_app_startup_script startup script when instance boots

About

linux box courtesy of azure

Resources

License

Stars

Watchers

Forks

Packages

No packages published