Advertisement
Guest User

Untitled

a guest
May 25th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. module "linuxservers" {
  2. source = "app.terraform.io/seanc-sandbox/compute/azurerm"
  3. location = "${var.location}"
  4. vm_os_simple = "UbuntuServer"
  5. public_ip_dns = ["${var.prefix}-moduletest"] // change to a unique name per datacenter region
  6. vnet_subnet_id = "${azurerm_subnet.subnet.id}"
  7. remote_port = "80"
  8. custom_data = <<EOM
  9. wget https://raw.githubusercontent.com/scarolan/hashicat/master/files/deploy_app.sh
  10. chmod 755 deploy_app.sh
  11. PLACEHOLDER=${var.placeholder} HEIGHT=${var.height} WIDTH=${var.width} PREFIX=${var.prefix} ./deploy_app.sh
  12. echo "Script complete."
  13. EOM
  14. }
  15.  
  16. output "linux_vm_public_name"{
  17. value = "${module.linuxservers.public_ip_dns_name}"
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement