Advertisement
Guest User

Untitled

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