Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module "linuxservers" {
- source = "app.terraform.io/seanc-sandbox/compute/azurerm"
- version = "1.2.3"
- resource_group_name = "${var.prefix}-moduletest"
- admin_username = "${var.admin_username}"
- admin_password = "${var.admin_password}"
- location = "${var.location}"
- vm_size = "${var.vm_size}"
- vm_os_simple = "UbuntuServer"
- public_ip_dns = ["${var.prefix}-moduletest"]
- vnet_subnet_id = "${azurerm_subnet.subnet.id}"
- remote_port = "80"
- custom_data = <<EOM
- wget https://raw.githubusercontent.com/scarolan/hashicat/master/files/deploy_app.sh
- chmod 755 deploy_app.sh
- PLACEHOLDER=${var.placeholder} HEIGHT=${var.height} WIDTH=${var.width} PREFIX=${var.prefix} ./deploy_app.sh
- echo "Script complete."
- EOM
- }
- output "linux_vm_module_app"{
- value = "http://${module.linuxservers.public_ip_dns_name}"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement