trying terraform 0.9.2 for destroy bug; fixed interpolation issue with sshCommand
This commit is contained in:
parent
87b049b72d
commit
f117f1de26
12
.travis.yml
12
.travis.yml
|
@ -1,3 +1,8 @@
|
|||
# sudo: required
|
||||
#
|
||||
# services:
|
||||
# - docker
|
||||
|
||||
language: generic
|
||||
|
||||
# establish environment variables
|
||||
|
@ -8,13 +13,18 @@ branches:
|
|||
only:
|
||||
- /^(?i:topic)-.*$/
|
||||
|
||||
# before_install:
|
||||
# - docker pull azuresdk/azure-cli-python
|
||||
|
||||
# install terraform
|
||||
before_deploy:
|
||||
- curl -fSL "https://releases.hashicorp.com/terraform/0.9.3/terraform_0.9.3_linux_amd64.zip" -o terraform.zip
|
||||
- curl -fSL "https://releases.hashicorp.com/terraform/0.9.2/terraform_0.9.2_linux_amd64.zip" -o terraform.zip
|
||||
- sudo unzip terraform.zip -d /opt/terraform
|
||||
- sudo ln -s /opt/terraform/terraform /usr/bin/terraform
|
||||
- rm -f terraform.zip
|
||||
|
||||
#
|
||||
|
||||
# terraform deploy script
|
||||
deploy:
|
||||
- provider: script
|
||||
|
|
|
@ -7,5 +7,5 @@ output "vm_fqdn" {
|
|||
}
|
||||
|
||||
output "sshCommand" {
|
||||
value = "${concat("ssh ", var.admin_username, "@", azurerm_public_ip.pip.fqdn)}"
|
||||
value = "ssh ${var.admin_username}@${azurerm_public_ip.pip.fqdn}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue