Avere/terraform.yml

162 строки
4.5 KiB
YAML
Исходник Обычный вид История

# Copyright (C) Microsoft Corporation. All rights reserved.
# https://aka.ms/yaml
trigger: none
parameters:
- name: original_node_count
displayName: "Original Node Count"
type: number
default: 3
values:
- 3
- 14
- name: scale_up_node_count
displayName: "Scale Up Node Count +"
type: number
default: 2
values:
- 1
- 2
- 3
- 4
- 5
- 6
- name: region
displayName: "Region to run pipeline"
type: string
default: "eastus"
values:
2021-07-13 15:32:15 +03:00
- "australiaeast"
- "australiasoutheast"
- "brazilsouth"
2021-02-17 17:04:30 +03:00
- "canadacentral"
2021-07-13 15:32:15 +03:00
- "canadaeast"
- "centralus"
2021-02-17 17:04:30 +03:00
- "eastasia"
2021-07-13 15:32:15 +03:00
- "eastus"
- "eastus2"
- "francecentral"
2021-02-17 17:04:30 +03:00
- "japaneast"
- "japanwest"
- "koreacentral"
2021-07-13 15:32:15 +03:00
- "koreasouth"
2021-02-17 17:04:30 +03:00
- "northeurope"
2021-07-13 15:32:15 +03:00
- "northcentralus"
- "southcentralus"
2021-02-17 17:04:30 +03:00
- "southeastasia"
2021-07-13 15:32:15 +03:00
- "southeastindia"
2021-02-17 17:04:30 +03:00
- "uksouth"
2021-07-13 15:32:15 +03:00
- "ukwest"
- "westus"
- "westus2"
- "westus3"
- "westeurope"
- "westindia"
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- name: tf_config
displayName: "Select terraform config to setup"
type: string
default: "azureblobfiler"
values:
- "1-filer"
- "proxy"
- "azureblobfiler"
- name: image
displayName: "Select vfxt image to run. Defaults to latest"
type: string
default: "microsoft-avere:vfxt:avere-vfxt-node:8.0.1"
values:
- "microsoft-avere:vfxt:avere-vfxt-node:latest"
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- "microsoft-avere:vfxt:avere-vfxt-node:8.0.1"
- "microsoft-avere:vfxt:avere-vfxt-node:6.3.0"
- "microsoft-avere:vfxt-preview:avere-vfxt-node:latest"
- name: controller_image
displayName: "Controller Image Offering (default: latest public)"
type: string
default: "microsoft-avere:vfxt:avere-vfxt-controller:latest"
values:
- "microsoft-avere:vfxt:avere-vfxt-controller:latest"
- "microsoft-avere:vfxt-preview:avere-vfxt-controller:latest"
- name: run_vdbench
displayName: "Run vdbench - only runs with azureblobfiler"
type: boolean
default: true
- name: vdbench_config
displayName: "vdbench config - only runs with azureblobfiler"
type: string
default: "inmem"
values:
- "ondisk"
- "inmem"
- name: run_scale_up
displayName: "Run scale-up"
type: boolean
default: true
- name: run_scale_down
displayName: "Run scale-down (only runs if scale-up is selected)"
type: boolean
default: false
- name: run_destroy_and_cleanup
displayName: "Run terraform destroy and rg cleanup."
type: boolean
default: true
- name: ssh_pub_key
displayName: "Optional: Pass in public ssh key, it would be placed on controller."
type: string
default: "."
variables:
SSH_PUBLIC_KEY: '${{ parameters.ssh_pub_key}}'
jobs:
- job: Terraform_vFXT
timeoutInMinutes: 180
cancelTimeoutInMinutes: 40
pool:
vmImage: ubuntu-latest
steps:
- template: templates/setup_ssh.yml
- template: templates/setup_envars.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
tf_config: ${{ parameters.tf_config }}
region: ${{ parameters.region }}
- template: templates/terraform_setup.yml
parameters:
original_node_count: ${{ parameters.original_node_count }}
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
tf_config: ${{ parameters.tf_config }}
image: ${{ parameters.image }}
controller_image: ${{ parameters.controller_image }}
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
scale_up_node_count: ${{ parameters.scale_up_node_count }}
vdbench_config: ${{ parameters.vdbench_config }}
- ${{ if ne(parameters.ssh_pub_key, '.') }}:
- template: templates/add_sshkey.yml
- ${{ if eq(parameters.run_vdbench, true) }}:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- ${{ if eq(parameters.tf_config, 'azureblobfiler') }}:
- template: templates/terraform_run.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
run: vdbench_run
- ${{ if eq(parameters.run_scale_up, true) }}:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- template: templates/terraform_run.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
run: scaleup
- ${{ if eq(parameters.run_scale_up, true) }}:
- ${{ if eq(parameters.run_scale_down, true) }}:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- template: templates/terraform_run.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
run: scaledown
- ${{ if eq(parameters.run_destroy_and_cleanup, true) }}:
- ${{ if eq(parameters.run_vdbench, true) }}:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
- ${{ if eq(parameters.tf_config, 'azureblobfiler') }}:
- template: templates/terraform_run.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
run: vdbench_destroy
- template: templates/terraform_run.yml
parameters:
terraform changes - removes public IP, create VM runner, uses cloud-config for setup, update pipeline files (#1315) * terraform changes - removes public IP, uses cloud-config for setup, uses VM as runner. * add sleep * remove AZURE_SUBSCRIPTION, replace with ARM_SUBSCRIPTION_ID * terraform config rename * remove linux user * remove sudo * logging for terraform cmds * && and rg delete error check * variable changes * succeeded vs always * vfxt create logs * tf config * az login Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * remove dual check * update log messages, remove az logins, purposely fail to see failure in pipeline * remove all logins * change error message * remove >&2, echo tests * add back >&2, add 1 second sleep, remove sets * add check for tf complete * change output * fix file names * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Update templates/cloud_init/cloud_init.client.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * address PR comments * add delete comment * add error check on regex * Update templates/terraform_setup.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * add back endgroup * add sleep for az cmd * Update templates/terraform_run.yml Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com> * Change errors with |& to pipestatus[0] and remove old vfxt node versions * logging * Additional logging changes * PIPESTATUS in terraform_run, extra check_rc in terraform_setup Co-authored-by: Omar Zevallos <45883639+omzevall@users.noreply.github.com>
2021-08-09 18:04:12 +03:00
run: destroy
condition: always()
- template: templates/rg_delete.yml
- template: templates/public_ip_delete.yml