trying terraform 0.9.2 for destroy bug; fixed interpolation issue with sshCommand

This commit is contained in:
Scott Nowicki 2017-04-20 00:43:32 -05:00
parent 87b049b72d
commit f117f1de26
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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}"
}