From 373719460b94d4745957bb2e0abd03c9f7ee0ad7 Mon Sep 17 00:00:00 2001 From: Travis CI User Date: Fri, 3 Jun 2022 10:45:31 +0000 Subject: [PATCH] v1.0.0 release --- .gitignore | 42 -- .travis.yml | 30 - .whitesource | 3 + README.md | 47 +- cli/README.md | 47 +- cli/ansible/roles/s4appinst/defaults/main.yml | 21 + .../roles/s4appinst/tasks/install_kit.yml | 112 ++- .../tasks/configurations/firewalld.yml | 11 + .../roles/saphanainst/tasks/install_kit.yml | 28 + .../tasks/configurations/firewalld.yml | 11 + cli/input.auto.tfvars | 46 ++ cli/{terraform => }/integration-app.tf | 2 +- cli/{terraform => }/integration-db.tf | 2 +- cli/{terraform => }/main.tf | 16 +- .../modules/ansible-exec/ansible-exec.tf | 0 .../modules/ansible-exec/variables.tf | 0 .../modules/ansible-exec/versions.tf | 0 .../db-vsi => modules/app-vsi}/output.tf | 4 - .../db-vsi => modules/app-vsi}/variables.tf | 12 +- .../modules/app-vsi/versions.tf | 0 cli/{terraform => }/modules/app-vsi/volume.tf | 1 + .../modules/db-vsi => modules/app-vsi}/vsi.tf | 12 +- .../app-vsi => modules/db-vsi}/output.tf | 4 - .../app-vsi => modules/db-vsi}/variables.tf | 12 +- .../modules/db-vsi/versions.tf | 0 cli/{terraform => }/modules/db-vsi/volume.tf | 1 + .../modules/app-vsi => modules/db-vsi}/vsi.tf | 12 +- .../modules/sec-exec/sec-exec.tf | 2 +- .../modules/sec-exec/variables.tf | 0 .../modules/sec-exec/versions.tf | 0 cli/modules/vpc/subnet/subnet.tf | 11 + cli/modules/vpc/subnet/variables.tf | 19 + .../modules/vpc/subnet/versions.tf | 0 cli/{terraform => }/output.tf | 8 - cli/{terraform => }/provider.tf | 0 cli/terraform/input.auto.tfvars | 48 -- cli/terraform/modules/vpc/subnet/subnet.tf | 23 - cli/terraform/modules/vpc/subnet/variables.tf | 34 - cli/terraform/terraform.tfvars | 1 - cli/{terraform => }/variables.tf | 38 +- cli/{terraform => }/versions.tf | 0 deploy.sh | 52 -- go.mod | 9 - go.sum | 660 ------------------ test/README.md | 307 -------- test/tf_test.go | 56 -- 46 files changed, 282 insertions(+), 1462 deletions(-) delete mode 100644 .gitignore delete mode 100644 .travis.yml create mode 100644 .whitesource create mode 100644 cli/ansible/roles/s4appreq/tasks/configurations/firewalld.yml create mode 100644 cli/ansible/roles/saphanareq/tasks/configurations/firewalld.yml create mode 100644 cli/input.auto.tfvars rename cli/{terraform => }/integration-app.tf (96%) rename cli/{terraform => }/integration-db.tf (93%) rename cli/{terraform => }/main.tf (78%) rename cli/{terraform => }/modules/ansible-exec/ansible-exec.tf (100%) rename cli/{terraform => }/modules/ansible-exec/variables.tf (100%) rename cli/{terraform => }/modules/ansible-exec/versions.tf (100%) rename cli/{terraform/modules/db-vsi => modules/app-vsi}/output.tf (70%) rename cli/{terraform/modules/db-vsi => modules/app-vsi}/variables.tf (89%) rename cli/{terraform => }/modules/app-vsi/versions.tf (100%) rename cli/{terraform => }/modules/app-vsi/volume.tf (79%) rename cli/{terraform/modules/db-vsi => modules/app-vsi}/vsi.tf (78%) rename cli/{terraform/modules/app-vsi => modules/db-vsi}/output.tf (70%) rename cli/{terraform/modules/app-vsi => modules/db-vsi}/variables.tf (80%) rename cli/{terraform => }/modules/db-vsi/versions.tf (100%) rename cli/{terraform => }/modules/db-vsi/volume.tf (81%) rename cli/{terraform/modules/app-vsi => modules/db-vsi}/vsi.tf (78%) rename cli/{terraform => }/modules/sec-exec/sec-exec.tf (85%) rename cli/{terraform => }/modules/sec-exec/variables.tf (100%) rename cli/{terraform => }/modules/sec-exec/versions.tf (100%) create mode 100644 cli/modules/vpc/subnet/subnet.tf create mode 100644 cli/modules/vpc/subnet/variables.tf rename cli/{terraform => }/modules/vpc/subnet/versions.tf (100%) rename cli/{terraform => }/output.tf (65%) rename cli/{terraform => }/provider.tf (100%) delete mode 100644 cli/terraform/input.auto.tfvars delete mode 100644 cli/terraform/modules/vpc/subnet/subnet.tf delete mode 100644 cli/terraform/modules/vpc/subnet/variables.tf delete mode 100644 cli/terraform/terraform.tfvars rename cli/{terraform => }/variables.tf (86%) rename cli/{terraform => }/versions.tf (100%) delete mode 100644 deploy.sh delete mode 100644 go.mod delete mode 100644 go.sum delete mode 100644 test/README.md delete mode 100644 test/tf_test.go diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a8b91a6..0000000 --- a/.gitignore +++ /dev/null @@ -1,42 +0,0 @@ -.terraform* -*.pem -*.plan -*.migrate - -.git/ -*.dll -*.exe -.DS_Store -example.tf -terraform.tfplan -terraform.tfstate -bin/ -modules-dev/ -/pkg/ -website/.vagrant -website/.bundle -website/build -website/node_modules -.vagrant/ -*.backup -./*.tfstate -.terraform/ -*.log -*.bak -*~ -.*.swp -.idea -*.iml -*.test -*.iml -.vscode -website/vendor -*.attach -*.xml -*.old -.remote-sync.json -.terraform.lock.hcl - -# Test exclusions -!command/test-fixtures/**/*.tfstate -!command/test-fixtures/**/.terraform/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a7a291f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: go -before_install: -- git config --global url.ssh://git@github.ibm.com/.insteadOf https://github.ibm.com/ -- go env -w GOPRIVATE=github.ibm.com/* -- wget https://releases.hashicorp.com/terraform/"$tf_version"/terraform_"$tf_version"_linux_amd64.zip -- unzip terraform_"$tf_version"_linux_amd64.zip -- sudo mv terraform /usr/local/bin/ -- rm terraform_"$tf_version"_linux_amd64.zip -install: true -env: - global: - - tf_version=0.15.0 - - PUBLIC_REPO= -stages: -- test -jobs: - include: - - stage: test - if: type = pull_request AND branch != master - go: 1.16.x - script: go test ./... -p 1 -v -short - - if: (branch = master) OR (tag IS present) - go: 1.16.x - script: go test ./... -p 1 -v -timeout 1h -deploy: - provider: script - script: ./deploy.sh - on: - tags: true - condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..545628a --- /dev/null +++ b/.whitesource @@ -0,0 +1,3 @@ +{ + "settingsInheritedFrom": "whitesource-config/whitesource-config@master" +} \ No newline at end of file diff --git a/README.md b/README.md index 2b441cf..7676fbb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This solution will perform automated deployment of **Three Tier SAP S/4HANA Stack** on top of **Red Hat Enterprise Linux 7.6 for SAP**. It contains: -- Terraform scripts for deploying two VSIs in an EXISTNG VPC with Subnet and Security Group configs. The VSIs scope: one for the data base instance and one for the application instance. +- Terraform scripts for deploying two VSIs in an EXISTING VPC with Subnet and Security Group configs. The VSIs scope: one for the data base instance and one for the application instance. - Ansible scripts to configure Three Tier SAP S/4HANA primary application server and a HANA 2.0 node. Please note that Ansible is started by Terraform and must be available on the same host. @@ -33,25 +33,23 @@ The solution is configured by editing your variables in the file `input.auto.tfv Edit your VPC, Subnet, Security group, Hostname, Profile, Image, SSH Keys like so: ```shell #Infra VPC variables -REGION = "eu-de" -ZONE = "eu-de-2" -VPC = "sap" # EXISTING VPC name -SECURITYGROUP = "sap-securitygroup" # EXISTING Security group name -SUBNET = "sap-subnet" # EXISTING Subnet name -ADD_OPEN_PORTS = "no" # To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options -OPEN_PORT_MINIMUM = "3200" # This variables will be created only if ADD_OPEN_PORTS = "yes" -OPEN_PORT_MAXIMUM = "3200" # This variables will be created only if ADD_OPEN_PORTS = "yes" -SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a" , "r010-3fcd9fe7-d4a7-41ce-8bb3-d96e936b2c7e" ] +REGION = "eu-de" +ZONE = "eu-de-2" +VPC = "sap" # EXISTING VPC name +SECURITY_GROUP = "sap-securitygroup" # EXISTING Security group name +RESOURCE_GROUP = "wes-automation" # EXISTING Resource Group +SUBNET = "sap-subnet" # EXISTING Subnet name +SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a", "r010-3fcd9fe7-d4a7-41ce-8bb3-d96e936b2c7e" ] # SAP Database VSI variables: -DB-HOSTNAME = "is110db" -DB-PROFILE = "mx2-16x128" -DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-x" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. +DB-HOSTNAME = "is110db" +DB-PROFILE = "mx2-16x128" +DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-3" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. # SAP APPs VSI variables: -APP-HOSTNAME = "is110apps" -APP-PROFILE = "bx2-4x16" -APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-x" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. +APP-HOSTNAME = "is110apps" +APP-PROFILE = "bx2-4x16" +APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-3" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. ...... ``` @@ -63,10 +61,8 @@ REGION | The cloud region where to deploy the solution.
The regions and z ZONE | The cloud zone where to deploy the solution.
Sample value: eu-de-2. VPC | EXISTING VPC name. The list of VPCs is available [here](https://cloud.ibm.com/vpc-ext/network/vpcs) SUBNET | EXISTING Subnet name. The list of Subnets is available [here](https://cloud.ibm.com/vpc-ext/network/subnets). -SECURITYGROUP | EXISTING Security group name. The list of Security Groups is available [here](https://cloud.ibm.com/vpc-ext/network/securityGroups). -ADD_OPEN_PORTS | To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options. -OPEN_PORT_MINIMUM | (Required, Integer) The TCP port range that includes the minimum bound. Valid values are from 1 to 65535.
Default value: 3200 -OPEN_PORT_MAXIMUM | (Required, Integer) The TCP port range that includes the maximum bound. Valid values are from 1 to 65535.
Default value: 3200. +SECURITY_GROUP | EXISTING Security group name. The list of Security Groups is available [here](https://cloud.ibm.com/vpc-ext/network/securityGroups). +RESOURCE_GROUP | EXISTING Resource Group for VSIs and Volumes. The list of Resource Groups is available [here](https://cloud.ibm.com/account/resource-groups). [DB/APP]-HOSTNAME | The Hostname for the VSI. The hostname must have up to 13 characters as required by SAP.
For more information on rules regarding hostnames for SAP systems, check [SAP Note 611361: Hostnames of SAP ABAP Platform servers](https://launchpad.support.sap.com/#/notes/%20611361) [DB/APP]-PROFILE | The profile used for the VSI. A list of profiles is available [here](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles).
For more information about supported DB/OS and IBM Gen 2 Virtual Server Instances (VSI), check [SAP Note 2927211: SAP Applications on IBM Virtual Private Cloud](https://launchpad.support.sap.com/#/notes/2927211) [DB/APP]-IMAGE | The OS image used for the VSI. A list of images is available [here](https://cloud.ibm.com/docs/vpc?topic=vpc-about-images) @@ -131,7 +127,7 @@ kit_s4hana_export | Path to S/4HANA Installation Export dir | The archives downl **Obs***:
- Sensitive - The variable value is not displayed in your tf files details after terrafrorm plan&apply commands.
- VOL[number] | The sizes for the disks in GB that are to be attached to the VSI and used by SAP.
-- The following variables should be the same like the bastion ones: REGION, ZONE, VPC, SUBNET, SECURITYGROUP. +- The following variables should be the same like the bastion ones: REGION, ZONE, VPC, SUBNET, RESOURCE_GROUP, SECURITY_GROUP. ## VPC Configuration @@ -173,18 +169,19 @@ terraform plan --out plan1 For apply phase: ```shell -terraform apply +terraform apply "plan1" ``` For destroy: ```shell terraform destroy -# you will be asked for the following sensitive variables as a destroy confirmation phase: -'ibmcloud_api_key', 'sap_master_password' and 'hana_master_password'. +# you will be asked for the following sensitive variables as a destroy confirmation phase: 'ibmcloud_api_key', 'sap_master_password' and 'hana_master_password'. ``` ### Related links: -- [See how to create a BASTION/STORAGE VSI for SAP in IBM Schematics](https://github.ibm.com/workload-eng-services/SAP/tree/dev/ibm-schematics/sapbastionsetup-sch) +- [See how to create a BASTION/STORAGE VSI for SAP in IBM Schematics](https://github.com/IBM-Cloud/sap-bastion-setup) +- [Securely Access Remote Instances with a Bastion Host](https://www.ibm.com/cloud/blog/tutorial-securely-access-remote-instances-with-a-bastion-host) +- [VPNs for VPC overview: Site-to-site gateways and Client-to-site servers.](https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-overview) diff --git a/cli/README.md b/cli/README.md index 2b441cf..2d6314b 100644 --- a/cli/README.md +++ b/cli/README.md @@ -5,7 +5,7 @@ This solution will perform automated deployment of **Three Tier SAP S/4HANA Stack** on top of **Red Hat Enterprise Linux 7.6 for SAP**. It contains: -- Terraform scripts for deploying two VSIs in an EXISTNG VPC with Subnet and Security Group configs. The VSIs scope: one for the data base instance and one for the application instance. +- Terraform scripts for deploying two VSIs in an EXISTING VPC with Subnet and Security Group configs. The VSIs scope: one for the data base instance and one for the application instance. - Ansible scripts to configure Three Tier SAP S/4HANA primary application server and a HANA 2.0 node. Please note that Ansible is started by Terraform and must be available on the same host. @@ -33,25 +33,23 @@ The solution is configured by editing your variables in the file `input.auto.tfv Edit your VPC, Subnet, Security group, Hostname, Profile, Image, SSH Keys like so: ```shell #Infra VPC variables -REGION = "eu-de" -ZONE = "eu-de-2" -VPC = "sap" # EXISTING VPC name -SECURITYGROUP = "sap-securitygroup" # EXISTING Security group name -SUBNET = "sap-subnet" # EXISTING Subnet name -ADD_OPEN_PORTS = "no" # To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options -OPEN_PORT_MINIMUM = "3200" # This variables will be created only if ADD_OPEN_PORTS = "yes" -OPEN_PORT_MAXIMUM = "3200" # This variables will be created only if ADD_OPEN_PORTS = "yes" -SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a" , "r010-3fcd9fe7-d4a7-41ce-8bb3-d96e936b2c7e" ] +REGION = "eu-de" +ZONE = "eu-de-2" +VPC = "sap" # EXISTING VPC name +SECURITY_GROUP = "sap-securitygroup" # EXISTING Security group name +RESOURCE_GROUP = "wes-automation" # EXISTING Resource group name +SUBNET = "sap-subnet" # EXISTING Subnet name +SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a" , "r010-3fcd9fe7-d4a7-41ce-8bb3-d96e936b2c7e" ] # SAP Database VSI variables: -DB-HOSTNAME = "is110db" -DB-PROFILE = "mx2-16x128" -DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-x" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. +DB-HOSTNAME = "is110db" +DB-PROFILE = "mx2-16x128" +DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-3" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. # SAP APPs VSI variables: -APP-HOSTNAME = "is110apps" -APP-PROFILE = "bx2-4x16" -APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-x" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. +APP-HOSTNAME = "is110apps" +APP-PROFILE = "bx2-4x16" +APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-3" # For any manual change in the terraform code, you have to make sure that you use a certified image based on the SAP NOTE: 2927211. ...... ``` @@ -63,10 +61,8 @@ REGION | The cloud region where to deploy the solution.
The regions and z ZONE | The cloud zone where to deploy the solution.
Sample value: eu-de-2. VPC | EXISTING VPC name. The list of VPCs is available [here](https://cloud.ibm.com/vpc-ext/network/vpcs) SUBNET | EXISTING Subnet name. The list of Subnets is available [here](https://cloud.ibm.com/vpc-ext/network/subnets). -SECURITYGROUP | EXISTING Security group name. The list of Security Groups is available [here](https://cloud.ibm.com/vpc-ext/network/securityGroups). -ADD_OPEN_PORTS | To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options. -OPEN_PORT_MINIMUM | (Required, Integer) The TCP port range that includes the minimum bound. Valid values are from 1 to 65535.
Default value: 3200 -OPEN_PORT_MAXIMUM | (Required, Integer) The TCP port range that includes the maximum bound. Valid values are from 1 to 65535.
Default value: 3200. +SECURITY_GROUP | EXISTING Security group name. The list of Security Groups is available [here](https://cloud.ibm.com/vpc-ext/network/securityGroups). +RESOURCE_GROUP | EXISTING Resource Group for VSIs and Volumes. The list of Resource Groups is available [here](https://cloud.ibm.com/account/resource-groups). [DB/APP]-HOSTNAME | The Hostname for the VSI. The hostname must have up to 13 characters as required by SAP.
For more information on rules regarding hostnames for SAP systems, check [SAP Note 611361: Hostnames of SAP ABAP Platform servers](https://launchpad.support.sap.com/#/notes/%20611361) [DB/APP]-PROFILE | The profile used for the VSI. A list of profiles is available [here](https://cloud.ibm.com/docs/vpc?topic=vpc-profiles).
For more information about supported DB/OS and IBM Gen 2 Virtual Server Instances (VSI), check [SAP Note 2927211: SAP Applications on IBM Virtual Private Cloud](https://launchpad.support.sap.com/#/notes/2927211) [DB/APP]-IMAGE | The OS image used for the VSI. A list of images is available [here](https://cloud.ibm.com/docs/vpc?topic=vpc-about-images) @@ -131,7 +127,7 @@ kit_s4hana_export | Path to S/4HANA Installation Export dir | The archives downl **Obs***:
- Sensitive - The variable value is not displayed in your tf files details after terrafrorm plan&apply commands.
- VOL[number] | The sizes for the disks in GB that are to be attached to the VSI and used by SAP.
-- The following variables should be the same like the bastion ones: REGION, ZONE, VPC, SUBNET, SECURITYGROUP. +- The following variables should be the same like the bastion ones: REGION, ZONE, VPC, SUBNET, RESOURCE_GROUP, SECURITY_GROUP. ## VPC Configuration @@ -173,18 +169,19 @@ terraform plan --out plan1 For apply phase: ```shell -terraform apply +terraform apply "plan1" ``` For destroy: ```shell terraform destroy -# you will be asked for the following sensitive variables as a destroy confirmation phase: -'ibmcloud_api_key', 'sap_master_password' and 'hana_master_password'. +# you will be asked for the following sensitive variables as a destroy confirmation phase: 'ibmcloud_api_key', 'sap_master_password' and 'hana_master_password'. ``` ### Related links: -- [See how to create a BASTION/STORAGE VSI for SAP in IBM Schematics](https://github.ibm.com/workload-eng-services/SAP/tree/dev/ibm-schematics/sapbastionsetup-sch) +- [See how to create a BASTION/STORAGE VSI for SAP in IBM Schematics](https://github.com/IBM-Cloud/sap-bastion-setup) +- [Securely Access Remote Instances with a Bastion Host](https://www.ibm.com/cloud/blog/tutorial-securely-access-remote-instances-with-a-bastion-host) +- [VPNs for VPC overview: Site-to-site gateways and Client-to-site servers.](https://cloud.ibm.com/docs/vpc?topic=vpc-vpn-overview) diff --git a/cli/ansible/roles/s4appinst/defaults/main.yml b/cli/ansible/roles/s4appinst/defaults/main.yml index cdc08b1..f66cbda 100644 --- a/cli/ansible/roles/s4appinst/defaults/main.yml +++ b/cli/ansible/roles/s4appinst/defaults/main.yml @@ -4,4 +4,25 @@ sap_product_id: "NW_ABAP_OneHost:S4HANA2020.CORE.HDB.ABAP" #Target files location s4app_kit: "/usr/sap/trans/kit" + +# Source and destination for the kit files +s4apps_kit: + - s4apps_src: "{{ kit_sapcar_file }}" + s4apps_dest: "{{ s4app_kit }}/sapcar" + - s4apps_src: "{{ kit_swpm_file }}" + s4apps_dest: "{{ s4app_kit }}/swpm.sar" + - s4apps_src: "{{ kit_sapexe_file }}" + s4apps_dest: "{{ s4app_kit }}/sapexe.sar" + - s4apps_src: "{{ kit_sapexedb_file }}" + s4apps_dest: "{{ s4app_kit }}/sapexedb.sar" + - s4apps_src: "{{ kit_igsexe_file }}" + s4apps_dest: "{{ s4app_kit }}/igsexe.sar" + - s4apps_src: "{{ kit_igshelper_file }}" + s4apps_dest: "{{ s4app_kit }}/igshelper.sar" + - s4apps_src: "{{ kit_saphotagent_file }}" + s4apps_dest: "{{ s4app_kit }}/saphotagent.sar" + - s4apps_src: "{{ kit_hdbclient_file }}" + s4apps_dest: "{{ s4app_kit }}/hdbclient.sar" + - s4apps_src: "{{ kit_s4hana_export }}/" + s4apps_dest: "{{ s4app_kit }}" ... diff --git a/cli/ansible/roles/s4appinst/tasks/install_kit.yml b/cli/ansible/roles/s4appinst/tasks/install_kit.yml index 03ee819..c395cfd 100644 --- a/cli/ansible/roles/s4appinst/tasks/install_kit.yml +++ b/cli/ansible/roles/s4appinst/tasks/install_kit.yml @@ -1,93 +1,61 @@ --- -- name: Create /usr/sap/kit directory +- name: Create directories for SAP kit on target file: - path: "{{ s4app_kit }}" + path: "{{ item }}" state: directory mode: 0777 + loop: + - "{{ s4app_kit }}" + - "{{ s4app_kit }}/swpm" + - "{{ s4app_kit }}/export" -- name: Create /usr/sap/trans/kit/swpm directory - file: - path: "{{ s4app_kit }}/swpm" - state: directory - mode: 0777 +- name: Gather the package facts for Ansible controller + package_facts: + manager: auto + delegate_to: localhost -- name: Create /usr/sap/trans/kit/export directory - file: - path: "{{ s4app_kit }}/export" - state: directory - mode: 0777 +- name: Check if rsync package is available on Ansible controller + set_fact: + rsync_found_controller: true + when: "'rsync' in ansible_facts.packages" + delegate_to: localhost -- name: Copy "{{ kit_sapcar_file }}" kit to target - copy: - src: "{{ kit_sapcar_file }}" - dest: "{{ s4app_kit }}/sapcar" - owner: root - group: root - mode: 0777 +- name: Gather the package facts for target + package_facts: + manager: auto -- name: Copy "{{ kit_swpm_file }}" kit to target - copy: - src: "{{ kit_swpm_file }}" - dest: "{{ s4app_kit }}/swpm.sar" - owner: root - group: root - mode: 0777 +- name: Check if rsync package is available on target + set_fact: + rsync_found_target: true + when: "'rsync' in ansible_facts.packages" -- name: Copy "{{ kit_sapexe_file }}" kit to target - copy: - src: "{{ kit_sapexe_file }}" - dest: "{{ s4app_kit }}/sapexe.sar" - owner: root - group: root - mode: 0777 +- name: Copy S4/HANA kit to target using rsync + synchronize: + src: "{{ item.s4apps_src }}" + dest: "{{ item.s4apps_dest }}" + checksum: yes + loop: "{{ s4apps_kit }}" + when: rsync_found_controller is defined and rsync_found_target is defined -- name: Copy "{{ kit_sapexedb_file }}" kit to target +- name: Copy S4/HANA kit to target when rsync is not available copy: - src: "{{ kit_sapexedb_file }}" - dest: "{{ s4app_kit }}/sapexedb.sar" + src: "{{ item.s4apps_src }}" + dest: "{{ item.s4apps_dest }}" owner: root group: root mode: 0777 + loop: "{{ s4apps_kit }}" + when: rsync_found_controller is not defined or rsync_found_target is not defined -- name: Copy "{{ kit_igsexe_file }}" kit to target - copy: - src: "{{ kit_igsexe_file }}" - dest: "{{ s4app_kit }}/igsexe.sar" - owner: root - group: root - mode: 0777 - -- name: Copy "{{ kit_igshelper_file }}" kit to target - copy: - src: "{{ kit_igshelper_file }}" - dest: "{{ s4app_kit }}/igshelper.sar" - owner: root - group: root - mode: 0777 - -- name: Copy "{{ kit_saphotagent_file }}" kit to target - copy: - src: "{{ kit_saphotagent_file }}" - dest: "{{ s4app_kit }}/saphotagent.sar" - owner: root - group: root - mode: 0777 - -- name: Copy "{{ kit_hdbclient_file }}" kit to target - copy: - src: "{{ kit_hdbclient_file }}" - dest: "{{ s4app_kit }}/hdbclient.sar" - owner: root - group: root +- name: Recursively change the ownership and permissions on the SAP kit directory + file: + path: "{{ s4app_kit }}" + state: directory mode: 0777 - -- name: Copy "{{ kit_s4hana_export }}" kit to target - copy: - src: "{{ kit_s4hana_export }}/" - dest: "{{ s4app_kit }}" + recurse: yes owner: root group: root - mode: 0777 + when: rsync_found_controller is defined and rsync_found_target is defined - name: Extract SWPM archive command: "{{ s4app_kit }}/sapcar -xf {{ s4app_kit }}/swpm.sar -R {{ s4app_kit }}/swpm" diff --git a/cli/ansible/roles/s4appreq/tasks/configurations/firewalld.yml b/cli/ansible/roles/s4appreq/tasks/configurations/firewalld.yml new file mode 100644 index 0000000..c627f7c --- /dev/null +++ b/cli/ansible/roles/s4appreq/tasks/configurations/firewalld.yml @@ -0,0 +1,11 @@ +--- +- name: Get the list of services + service_facts: + +- name: Stop and disable firewalld + systemd: + name: firewalld + state: stopped + enabled: no + when: "'firewalld.service' in services" +... \ No newline at end of file diff --git a/cli/ansible/roles/saphanainst/tasks/install_kit.yml b/cli/ansible/roles/saphanainst/tasks/install_kit.yml index a7d85e8..3f2b95f 100644 --- a/cli/ansible/roles/saphanainst/tasks/install_kit.yml +++ b/cli/ansible/roles/saphanainst/tasks/install_kit.yml @@ -5,6 +5,33 @@ state: directory mode: 0777 +- name: Gather the package facts for Ansible controller + package_facts: + manager: auto + delegate_to: localhost + +- name: Check if rsync package is available on Ansible controller + set_fact: + rsync_found_controller: true + when: "'rsync' in ansible_facts.packages" + delegate_to: localhost + +- name: Gather the package facts for target + package_facts: + manager: auto + +- name: Check if rsync package is available on target + set_fact: + rsync_found_target: true + when: "'rsync' in ansible_facts.packages" + +- name: Copy "{{ kit_saphana_file }}" kit to target using rsync + synchronize: + src: "{{ kit_saphana_file }}" + dest: "{{ hana_kit }}" + checksum: yes + when: rsync_found_controller is defined and rsync_found_target is defined + - name: Copy "{{ kit_saphana_file }}" kit to target copy: src: "{{ kit_saphana_file }}" @@ -12,6 +39,7 @@ owner: root group: root mode: 0777 + when: rsync_found_controller is not defined or rsync_found_target is not defined - name: Extract "{{ hana_kit }}/{{ kit_saphana_file.split('/')[-1] }}" to target unarchive: diff --git a/cli/ansible/roles/saphanareq/tasks/configurations/firewalld.yml b/cli/ansible/roles/saphanareq/tasks/configurations/firewalld.yml new file mode 100644 index 0000000..c627f7c --- /dev/null +++ b/cli/ansible/roles/saphanareq/tasks/configurations/firewalld.yml @@ -0,0 +1,11 @@ +--- +- name: Get the list of services + service_facts: + +- name: Stop and disable firewalld + systemd: + name: firewalld + state: stopped + enabled: no + when: "'firewalld.service' in services" +... \ No newline at end of file diff --git a/cli/input.auto.tfvars b/cli/input.auto.tfvars new file mode 100644 index 0000000..afff0ee --- /dev/null +++ b/cli/input.auto.tfvars @@ -0,0 +1,46 @@ +# General VPC variables: +REGION = "eu-de" +ZONE = "eu-de-2" +VPC = "ic4sap" # EXISTING Security group name +SECURITY_GROUP = "ic4sap-securitygroup" # EXISTING Security group name +RESOURCE_GROUP = "wes-automation" # EXISTING Resource group name +SUBNET = "ic4sap-subnet" # EXISTING Subnet name +SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a" , "r010-e372fc6f-4aef-4bdf-ade6-c4b7c1ad61ca" , "r010-09325e15-15be-474e-9b3b-21827b260717" , "r010-5cfdb578-fc66-4bf7-967e-f5b4a8d03b89" , "r010-7b85d127-7493-4911-bdb7-61bf40d3c7d4" , "r010-771e15dd-8081-4cca-8844-445a40e6a3b3" , "r010-d941534b-1d30-474e-9494-c26a88d4cda3" ] + +# SAP Database VSI variables: +DB-HOSTNAME = "saps4hnmar1" +DB-PROFILE = "mx2-16x128" +DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-3" + +# SAP APPs VSI variables: +APP-HOSTNAME = "saps4apmar1" +APP-PROFILE = "bx2-4x16" +APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-3" + +#HANA DB configuration +hana_sid = "HDB" +hana_sysno = "00" +hana_system_usage = "custom" +hana_components = "server" + +#SAP HANA Installation kit path +kit_saphana_file = "/storage/HANADB/51054623.ZIP" + +#SAP system configuration +sap_sid = "S4A" +sap_ascs_instance_number = "01" +sap_ci_instance_number = "00" + +# Number of concurrent jobs used to load and/or extract archives to HANA Host +hdb_concurrent_jobs = "23" + +#SAP S4HANA APP Installation kit path +kit_sapcar_file = "/storage/S4HANA/SAPCAR_1010-70006178.EXE" +kit_swpm_file = "/storage/S4HANA/SWPM20SP09_4-80003424.SAR" +kit_sapexe_file = "/storage/S4HANA/SAPEXE_100-70005283.SAR" +kit_sapexedb_file = "/storage/S4HANA/SAPEXEDB_100-70005282.SAR" +kit_igsexe_file = "/storage/S4HANA/igsexe_1-70005417.sar" +kit_igshelper_file = "/storage/S4HANA/igshelper_17-10010245.sar" +kit_saphotagent_file = "/storage/S4HANA/SAPHOSTAGENT51_51-20009394.SAR" +kit_hdbclient_file = "/storage/S4HANA/IMDB_CLIENT20_009_28-80002082.SAR" +kit_s4hana_export = "/storage/S4HANA/export" diff --git a/cli/terraform/integration-app.tf b/cli/integration-app.tf similarity index 96% rename from cli/terraform/integration-app.tf rename to cli/integration-app.tf index 8d492b5..3f02981 100644 --- a/cli/terraform/integration-app.tf +++ b/cli/integration-app.tf @@ -32,5 +32,5 @@ kit_hdbclient_file: "${var.kit_hdbclient_file}" kit_s4hana_export: "${var.kit_s4hana_export}" ... DOC - filename = "../ansible/saps4app-vars.yml" + filename = "ansible/saps4app-vars.yml" } diff --git a/cli/terraform/integration-db.tf b/cli/integration-db.tf similarity index 93% rename from cli/terraform/integration-db.tf rename to cli/integration-db.tf index 5c6f787..bd7c200 100644 --- a/cli/terraform/integration-db.tf +++ b/cli/integration-db.tf @@ -17,5 +17,5 @@ hana_components: "${var.hana_components}" kit_saphana_file: "${var.kit_saphana_file}" ... DOC - filename = "../ansible/saphana-vars.yml" + filename = "ansible/saphana-vars.yml" } diff --git a/cli/terraform/main.tf b/cli/main.tf similarity index 78% rename from cli/terraform/main.tf rename to cli/main.tf index f6d9d20..5a4ef72 100644 --- a/cli/terraform/main.tf +++ b/cli/main.tf @@ -2,20 +2,17 @@ module "vpc-subnet" { source = "./modules/vpc/subnet" ZONE = var.ZONE VPC = var.VPC - SECURITYGROUP = var.SECURITYGROUP - ADD_OPEN_PORTS = var.ADD_OPEN_PORTS - OPEN_PORT_MINIMUM = var.OPEN_PORT_MINIMUM - OPEN_PORT_MAXIMUM = var.OPEN_PORT_MAXIMUM + SECURITY_GROUP = var.SECURITY_GROUP SUBNET = var.SUBNET - count = (var.ADD_OPEN_PORTS == "yes" ? 1: 0) } module "db-vsi" { source = "./modules/db-vsi" ZONE = var.ZONE VPC = var.VPC - SECURITYGROUP = var.SECURITYGROUP + SECURITY_GROUP = var.SECURITY_GROUP SUBNET = var.SUBNET + RESOURCE_GROUP = var.RESOURCE_GROUP HOSTNAME = var.DB-HOSTNAME PROFILE = var.DB-PROFILE IMAGE = var.DB-IMAGE @@ -29,8 +26,9 @@ module "app-vsi" { source = "./modules/app-vsi" ZONE = var.ZONE VPC = var.VPC - SECURITYGROUP = var.SECURITYGROUP + SECURITY_GROUP = var.SECURITY_GROUP SUBNET = var.SUBNET + RESOURCE_GROUP = var.RESOURCE_GROUP HOSTNAME = var.APP-HOSTNAME PROFILE = var.APP-PROFILE IMAGE = var.APP-IMAGE @@ -43,14 +41,14 @@ module "db-ansible-exec" { source = "./modules/ansible-exec" depends_on = [ module.db-vsi , local_file.db_ansible_saphana-vars ] IP = module.db-vsi.PRIVATE-IP - PLAYBOOK_PATH = "../ansible/saphana.yml" + PLAYBOOK_PATH = "ansible/saphana.yml" } module "app-ansible-exec" { source = "./modules/ansible-exec" depends_on = [ module.db-ansible-exec , module.app-vsi , local_file.app_ansible_saps4app-vars ] IP = module.app-vsi.PRIVATE-IP - PLAYBOOK_PATH = "../ansible/saps4app.yml" + PLAYBOOK_PATH = "ansible/saps4app.yml" } module "sec-exec" { diff --git a/cli/terraform/modules/ansible-exec/ansible-exec.tf b/cli/modules/ansible-exec/ansible-exec.tf similarity index 100% rename from cli/terraform/modules/ansible-exec/ansible-exec.tf rename to cli/modules/ansible-exec/ansible-exec.tf diff --git a/cli/terraform/modules/ansible-exec/variables.tf b/cli/modules/ansible-exec/variables.tf similarity index 100% rename from cli/terraform/modules/ansible-exec/variables.tf rename to cli/modules/ansible-exec/variables.tf diff --git a/cli/terraform/modules/ansible-exec/versions.tf b/cli/modules/ansible-exec/versions.tf similarity index 100% rename from cli/terraform/modules/ansible-exec/versions.tf rename to cli/modules/ansible-exec/versions.tf diff --git a/cli/terraform/modules/db-vsi/output.tf b/cli/modules/app-vsi/output.tf similarity index 70% rename from cli/terraform/modules/db-vsi/output.tf rename to cli/modules/app-vsi/output.tf index 1cb8974..fbfaeda 100644 --- a/cli/terraform/modules/db-vsi/output.tf +++ b/cli/modules/app-vsi/output.tf @@ -2,10 +2,6 @@ output "HOSTNAME" { value = ibm_is_instance.vsi.name } -output "FLOATING-IP" { - value = ibm_is_floating_ip.fip.address -} - output "PRIVATE-IP" { value = ibm_is_instance.vsi.primary_network_interface[0].primary_ipv4_address } diff --git a/cli/terraform/modules/db-vsi/variables.tf b/cli/modules/app-vsi/variables.tf similarity index 89% rename from cli/terraform/modules/db-vsi/variables.tf rename to cli/modules/app-vsi/variables.tf index 5d3bd8e..5153b0a 100644 --- a/cli/terraform/modules/db-vsi/variables.tf +++ b/cli/modules/app-vsi/variables.tf @@ -13,11 +13,16 @@ variable "SUBNET" { description = "Subnet name" } -variable "SECURITYGROUP" { +variable "SECURITY_GROUP" { type = string description = "Security group name" } +variable "RESOURCE_GROUP" { + type = string + description = "Resource Group" +} + variable "HOSTNAME" { type = string description = "VSI Hostname" @@ -47,8 +52,3 @@ variable "VOL_PROFILE" { type = string description = "Volume profile" } - -variable "VOL_IOPS" { - type = string - description = "Volume IOPS" -} diff --git a/cli/terraform/modules/app-vsi/versions.tf b/cli/modules/app-vsi/versions.tf similarity index 100% rename from cli/terraform/modules/app-vsi/versions.tf rename to cli/modules/app-vsi/versions.tf diff --git a/cli/terraform/modules/app-vsi/volume.tf b/cli/modules/app-vsi/volume.tf similarity index 79% rename from cli/terraform/modules/app-vsi/volume.tf rename to cli/modules/app-vsi/volume.tf index c01562c..07cf897 100644 --- a/cli/terraform/modules/app-vsi/volume.tf +++ b/cli/modules/app-vsi/volume.tf @@ -3,6 +3,7 @@ resource "ibm_is_volume" "vol" { count = length( var.VOLUME_SIZES ) name = "${var.HOSTNAME}-vol${count.index}" zone = var.ZONE + resource_group = data.ibm_resource_group.group.id capacity = var.VOLUME_SIZES[count.index] profile = var.VOL_PROFILE } diff --git a/cli/terraform/modules/db-vsi/vsi.tf b/cli/modules/app-vsi/vsi.tf similarity index 78% rename from cli/terraform/modules/db-vsi/vsi.tf rename to cli/modules/app-vsi/vsi.tf index 81a1216..d9f3ce8 100644 --- a/cli/terraform/modules/db-vsi/vsi.tf +++ b/cli/modules/app-vsi/vsi.tf @@ -3,7 +3,7 @@ data "ibm_is_vpc" "vpc" { } data "ibm_is_security_group" "securitygroup" { - name = var.SECURITYGROUP + name = var.SECURITY_GROUP } data "ibm_is_subnet" "subnet" { @@ -14,9 +14,14 @@ data "ibm_is_image" "image" { name = var.IMAGE } +data "ibm_resource_group" "group" { + name = var.RESOURCE_GROUP +} + resource "ibm_is_instance" "vsi" { vpc = data.ibm_is_vpc.vpc.id zone = var.ZONE + resource_group = data.ibm_resource_group.group.id keys = var.SSH_KEYS name = var.HOSTNAME profile = var.PROFILE @@ -28,8 +33,3 @@ resource "ibm_is_instance" "vsi" { } volumes = ibm_is_volume.vol[*].id } - -resource "ibm_is_floating_ip" "fip" { - name = "${var.HOSTNAME}-fip" - target = ibm_is_instance.vsi.primary_network_interface[0].id -} diff --git a/cli/terraform/modules/app-vsi/output.tf b/cli/modules/db-vsi/output.tf similarity index 70% rename from cli/terraform/modules/app-vsi/output.tf rename to cli/modules/db-vsi/output.tf index 1cb8974..fbfaeda 100644 --- a/cli/terraform/modules/app-vsi/output.tf +++ b/cli/modules/db-vsi/output.tf @@ -2,10 +2,6 @@ output "HOSTNAME" { value = ibm_is_instance.vsi.name } -output "FLOATING-IP" { - value = ibm_is_floating_ip.fip.address -} - output "PRIVATE-IP" { value = ibm_is_instance.vsi.primary_network_interface[0].primary_ipv4_address } diff --git a/cli/terraform/modules/app-vsi/variables.tf b/cli/modules/db-vsi/variables.tf similarity index 80% rename from cli/terraform/modules/app-vsi/variables.tf rename to cli/modules/db-vsi/variables.tf index 08b1172..139dee8 100644 --- a/cli/terraform/modules/app-vsi/variables.tf +++ b/cli/modules/db-vsi/variables.tf @@ -13,11 +13,16 @@ variable "SUBNET" { description = "Subnet name" } -variable "SECURITYGROUP" { +variable "SECURITY_GROUP" { type = string description = "Security group name" } +variable "RESOURCE_GROUP" { + type = string + description = "Resource Group" +} + variable "HOSTNAME" { type = string description = "VSI Hostname" @@ -47,3 +52,8 @@ variable "VOL_PROFILE" { type = string description = "Volume profile" } + +variable "VOL_IOPS" { + type = string + description = "Volume IOPS" +} diff --git a/cli/terraform/modules/db-vsi/versions.tf b/cli/modules/db-vsi/versions.tf similarity index 100% rename from cli/terraform/modules/db-vsi/versions.tf rename to cli/modules/db-vsi/versions.tf diff --git a/cli/terraform/modules/db-vsi/volume.tf b/cli/modules/db-vsi/volume.tf similarity index 81% rename from cli/terraform/modules/db-vsi/volume.tf rename to cli/modules/db-vsi/volume.tf index 449edd4..8e36e55 100644 --- a/cli/terraform/modules/db-vsi/volume.tf +++ b/cli/modules/db-vsi/volume.tf @@ -3,6 +3,7 @@ resource "ibm_is_volume" "vol" { count = length( var.VOLUME_SIZES ) name = "${var.HOSTNAME}-vol${count.index}" zone = var.ZONE + resource_group = data.ibm_resource_group.group.id capacity = var.VOLUME_SIZES[count.index] profile = var.VOL_PROFILE iops = var.VOL_IOPS diff --git a/cli/terraform/modules/app-vsi/vsi.tf b/cli/modules/db-vsi/vsi.tf similarity index 78% rename from cli/terraform/modules/app-vsi/vsi.tf rename to cli/modules/db-vsi/vsi.tf index 81a1216..d9f3ce8 100644 --- a/cli/terraform/modules/app-vsi/vsi.tf +++ b/cli/modules/db-vsi/vsi.tf @@ -3,7 +3,7 @@ data "ibm_is_vpc" "vpc" { } data "ibm_is_security_group" "securitygroup" { - name = var.SECURITYGROUP + name = var.SECURITY_GROUP } data "ibm_is_subnet" "subnet" { @@ -14,9 +14,14 @@ data "ibm_is_image" "image" { name = var.IMAGE } +data "ibm_resource_group" "group" { + name = var.RESOURCE_GROUP +} + resource "ibm_is_instance" "vsi" { vpc = data.ibm_is_vpc.vpc.id zone = var.ZONE + resource_group = data.ibm_resource_group.group.id keys = var.SSH_KEYS name = var.HOSTNAME profile = var.PROFILE @@ -28,8 +33,3 @@ resource "ibm_is_instance" "vsi" { } volumes = ibm_is_volume.vol[*].id } - -resource "ibm_is_floating_ip" "fip" { - name = "${var.HOSTNAME}-fip" - target = ibm_is_instance.vsi.primary_network_interface[0].id -} diff --git a/cli/terraform/modules/sec-exec/sec-exec.tf b/cli/modules/sec-exec/sec-exec.tf similarity index 85% rename from cli/terraform/modules/sec-exec/sec-exec.tf rename to cli/modules/sec-exec/sec-exec.tf index 9928823..50e3649 100644 --- a/cli/terraform/modules/sec-exec/sec-exec.tf +++ b/cli/modules/sec-exec/sec-exec.tf @@ -7,6 +7,6 @@ resource "null_resource" "sec-exec" { command = "sed -i 's/${var.hana_master_password}/xxxxxxxx/' terraform.tfstate" } provisioner "local-exec" { - command = "sleep 20; rm -rf ../ansible/*-vars.yml" + command = "sleep 20; rm -rf ansible/*-vars.yml" } } diff --git a/cli/terraform/modules/sec-exec/variables.tf b/cli/modules/sec-exec/variables.tf similarity index 100% rename from cli/terraform/modules/sec-exec/variables.tf rename to cli/modules/sec-exec/variables.tf diff --git a/cli/terraform/modules/sec-exec/versions.tf b/cli/modules/sec-exec/versions.tf similarity index 100% rename from cli/terraform/modules/sec-exec/versions.tf rename to cli/modules/sec-exec/versions.tf diff --git a/cli/modules/vpc/subnet/subnet.tf b/cli/modules/vpc/subnet/subnet.tf new file mode 100644 index 0000000..c63efad --- /dev/null +++ b/cli/modules/vpc/subnet/subnet.tf @@ -0,0 +1,11 @@ +data "ibm_is_vpc" "vpc" { + name = var.VPC +} + +data "ibm_is_subnet" "subnet" { + name = var.SUBNET +} + +data "ibm_is_security_group" "securitygroup" { + name = var.SECURITY_GROUP +} diff --git a/cli/modules/vpc/subnet/variables.tf b/cli/modules/vpc/subnet/variables.tf new file mode 100644 index 0000000..9cdb92b --- /dev/null +++ b/cli/modules/vpc/subnet/variables.tf @@ -0,0 +1,19 @@ +variable "ZONE" { + type = string + description = "Cloud Zone" +} + +variable "VPC" { + type = string + description = "VPC name" +} + +variable "SUBNET" { + type = string + description = "Subnet name" +} + +variable "SECURITY_GROUP" { + type = string + description = "Security group name" +} diff --git a/cli/terraform/modules/vpc/subnet/versions.tf b/cli/modules/vpc/subnet/versions.tf similarity index 100% rename from cli/terraform/modules/vpc/subnet/versions.tf rename to cli/modules/vpc/subnet/versions.tf diff --git a/cli/terraform/output.tf b/cli/output.tf similarity index 65% rename from cli/terraform/output.tf rename to cli/output.tf index 191a2c2..6beed48 100644 --- a/cli/terraform/output.tf +++ b/cli/output.tf @@ -2,10 +2,6 @@ output "DB-HOSTNAME" { value = module.db-vsi.HOSTNAME } -output "DB-FLOATING-IP" { - value = module.db-vsi.FLOATING-IP -} - output "DB-PRIVATE-IP" { value = module.db-vsi.PRIVATE-IP } @@ -15,10 +11,6 @@ output "APP-HOSTNAME" { value = module.app-vsi.HOSTNAME } -output "APP-FLOATING-IP" { - value = module.app-vsi.FLOATING-IP -} - output "APP-PRIVATE-IP" { value = module.app-vsi.PRIVATE-IP } diff --git a/cli/terraform/provider.tf b/cli/provider.tf similarity index 100% rename from cli/terraform/provider.tf rename to cli/provider.tf diff --git a/cli/terraform/input.auto.tfvars b/cli/terraform/input.auto.tfvars deleted file mode 100644 index 89888a1..0000000 --- a/cli/terraform/input.auto.tfvars +++ /dev/null @@ -1,48 +0,0 @@ -# General VPC variables: -REGION = "eu-de" -ZONE = "eu-de-2" -VPC = "ic4sap" # EXISTING Security group name -SECURITYGROUP = "ic4sap-securitygroup" # EXISTING Security group name -SUBNET = "ic4sap-subnet" # EXISTING Subnet name -ADD_OPEN_PORTS = "no" # To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options -OPEN_PORT_MINIMUM = "3203" # This variables will be created only if ADD_OPEN_PORTS = "yes" -OPEN_PORT_MAXIMUM = "3203" # This variables will be created only if ADD_OPEN_PORTS = "yes" -SSH_KEYS = [ "r010-57bfc315-f9e5-46bf-bf61-d87a24a9ce7a" , "r010-e372fc6f-4aef-4bdf-ade6-c4b7c1ad61ca" , "r010-09325e15-15be-474e-9b3b-21827b260717" , "r010-5cfdb578-fc66-4bf7-967e-f5b4a8d03b89" , "r010-7b85d127-7493-4911-bdb7-61bf40d3c7d4" , "r010-771e15dd-8081-4cca-8844-445a40e6a3b3" , "r010-d941534b-1d30-474e-9494-c26a88d4cda3" ] - -# SAP Database VSI variables: -DB-HOSTNAME = "saps4hnmar1" -DB-PROFILE = "mx2-16x128" -DB-IMAGE = "ibm-redhat-7-6-amd64-sap-hana-3" - -# SAP APPs VSI variables: -APP-HOSTNAME = "saps4apmar1" -APP-PROFILE = "bx2-4x16" -APP-IMAGE = "ibm-redhat-7-6-amd64-sap-applications-3" - -#HANA DB configuration -hana_sid = "HDB" -hana_sysno = "00" -hana_system_usage = "custom" -hana_components = "server" - -#SAP HANA Installation kit path -kit_saphana_file = "/storage/HANADB/51054623.ZIP" - -#SAP system configuration -sap_sid = "S4A" -sap_ascs_instance_number = "01" -sap_ci_instance_number = "03" - -# Number of concurrent jobs used to load and/or extract archives to HANA Host -hdb_concurrent_jobs = "23" - -#SAP S4HANA APP Installation kit path -kit_sapcar_file = "/storage/S4HANA/SAPCAR_1010-70006178.EXE" -kit_swpm_file = "/storage/S4HANA/SWPM20SP09_4-80003424.SAR" -kit_sapexe_file = "/storage/S4HANA/SAPEXE_100-70005283.SAR" -kit_sapexedb_file = "/storage/S4HANA/SAPEXEDB_100-70005282.SAR" -kit_igsexe_file = "/storage/S4HANA/igsexe_1-70005417.sar" -kit_igshelper_file = "/storage/S4HANA/igshelper_17-10010245.sar" -kit_saphotagent_file = "/storage/S4HANA/SAPHOSTAGENT51_51-20009394.SAR" -kit_hdbclient_file = "/storage/S4HANA/IMDB_CLIENT20_009_28-80002082.SAR" -kit_s4hana_export = "/storage/S4HANA/export" diff --git a/cli/terraform/modules/vpc/subnet/subnet.tf b/cli/terraform/modules/vpc/subnet/subnet.tf deleted file mode 100644 index 43ddfbc..0000000 --- a/cli/terraform/modules/vpc/subnet/subnet.tf +++ /dev/null @@ -1,23 +0,0 @@ -data "ibm_is_vpc" "vpc" { - name = var.VPC -} - -data "ibm_is_subnet" "subnet" { - name = var.SUBNET -} - -data "ibm_is_security_group" "securitygroup" { - name = var.SECURITYGROUP -} - -resource "ibm_is_security_group_rule" "fip_inbound_SAP_GUI_access" { - count = (var.ADD_OPEN_PORTS == "yes" ? 1: 0) - group = data.ibm_is_security_group.securitygroup.id - direction = "inbound" - remote = "0.0.0.0/0" - - tcp { - port_min = var.OPEN_PORT_MINIMUM - port_max = var.OPEN_PORT_MAXIMUM - } -} diff --git a/cli/terraform/modules/vpc/subnet/variables.tf b/cli/terraform/modules/vpc/subnet/variables.tf deleted file mode 100644 index a8c9100..0000000 --- a/cli/terraform/modules/vpc/subnet/variables.tf +++ /dev/null @@ -1,34 +0,0 @@ -variable "ZONE" { - type = string - description = "Cloud Zone" -} - -variable "VPC" { - type = string - description = "VPC name" -} - -variable "SUBNET" { - type = string - description = "Subnet name" -} - -variable "SECURITYGROUP" { - type = string - description = "Security group name" -} - -variable "ADD_OPEN_PORTS" { - type = string - description = "New open ports" -} - -variable "OPEN_PORT_MINIMUM" { - type = number - description = "(Required, Integer) The TCP port range that includes the minimum bound. Valid values are from 1 to 65535." -} - -variable "OPEN_PORT_MAXIMUM" { - type = number - description = "(Required, Integer) The TCP port range that includes the maximum bound. Valid values are from 1 to 65535." -} diff --git a/cli/terraform/terraform.tfvars b/cli/terraform/terraform.tfvars deleted file mode 100644 index 7fbab6c..0000000 --- a/cli/terraform/terraform.tfvars +++ /dev/null @@ -1 +0,0 @@ -#ibmcloud_api_key = "" diff --git a/cli/terraform/variables.tf b/cli/variables.tf similarity index 86% rename from cli/terraform/variables.tf rename to cli/variables.tf index a745d43..07722de 100644 --- a/cli/terraform/variables.tf +++ b/cli/variables.tf @@ -34,43 +34,19 @@ variable "SUBNET" { } } -variable "SECURITYGROUP" { +variable "SECURITY_GROUP" { type = string description = "EXISTING Security group name" validation { - condition = length(regexall("^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", var.SECURITYGROUP)) > 0 - error_message = "The SECURITYGROUP name is not valid." + condition = length(regexall("^([a-z]|[a-z][-a-z0-9]*[a-z0-9]|[0-9][-a-z0-9]*([a-z]|[-a-z][-a-z0-9]*[a-z0-9]))$", var.SECURITY_GROUP)) > 0 + error_message = "The SECURITY_GROUP name is not valid." } } -variable "ADD_OPEN_PORTS" { - type = string - description = "To create new open port/s on the EXISTING SECURITYGROUP, choose 'yes' or 'no' as options." - default = "no" - validation { - condition = var.ADD_OPEN_PORTS == "yes" || var.ADD_OPEN_PORTS =="no" - error_message = "The value for this parameter can only be yes or no." - } -} - -variable "OPEN_PORT_MINIMUM" { - type = number - description = "(Required, Integer) The TCP port range that includes the minimum bound. Valid values are from 1 to 65535." - default = "3200" - validation { - condition = var.OPEN_PORT_MINIMUM <= 65535 && var.OPEN_PORT_MINIMUM >= 1 - error_message = "Valid values are from 1 to 65535." - } -} - -variable "OPEN_PORT_MAXIMUM" { - type = number - description = "(Required, Integer) The TCP port range that includes the maximum bound. Valid values are from 1 to 65535." - default = "3200" - validation { - condition = var.OPEN_PORT_MAXIMUM <= 65535 && var.OPEN_PORT_MAXIMUM >= 1 - error_message = "Valid values are from 1 to 65535." - } +variable "RESOURCE_GROUP" { + type = string + description = "EXISTING Resource Group for VSIs and Volumes" + default = "Default" } variable "SSH_KEYS" { diff --git a/cli/terraform/versions.tf b/cli/versions.tf similarity index 100% rename from cli/terraform/versions.tf rename to cli/versions.tf diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 298327d..0000000 --- a/deploy.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash - -if [[ -z $PUBLIC_REPO ]]; then - echo "[CD] No public repository set, exiting deploy" - exit 0 -fi - -if [[ ! $PUBLIC_REPO =~ ^git@.+:.+\/.+\.git$ ]]; then - echo "[CD] Public repository needs to be an ssh url" - exit 1 -fi - -echo "[CD] Add Remote" -git remote add public $PUBLIC_REPO -git fetch public - -echo "[CD] Create New Release Branch" -# If the remote master exists, check it out -# otherwise just use the tag to start with -if [[ $(git branch -a | grep public/master) ]]; then - git checkout public/master -fi - -git checkout -b release - -echo "[CD] Merge the Tag" -git merge --strategy-option theirs --squash $TRAVIS_TAG --allow-unrelated-histories - -echo "[CD] Remove non-release items" -git rm -rf test -git rm -f .travis.yml -git rm -f .gitignore -git rm -f go.* -git rm -f "$0" - -echo "[CD] Commit" -git commit -m "$TRAVIS_TAG release" - -# Reset the root if new repository -if [[ ! $(git branch -a | grep public/master) ]]; then - git reset $(git commit-tree HEAD^{tree} -m "$TRAVIS_TAG release") -fi - -echo "[CD] Push to Remote Master" -git push public release:master - -echo "[CD] Make Public Tag" -git tag -d $TRAVIS_TAG -git tag $TRAVIS_TAG -git push public $TRAVIS_TAG - -echo "[CD] Done" diff --git a/go.mod b/go.mod deleted file mode 100644 index 8ee2484..0000000 --- a/go.mod +++ /dev/null @@ -1,9 +0,0 @@ -module github.ibm.com/workload-eng-services/Terraform - -go 1.16 - -require ( - github.com/gruntwork-io/terratest v0.36.3 - github.com/stretchr/testify v1.7.0 - github.ibm.com/mathewss/tf-helper v1.5.0 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 0cbc78f..0000000 --- a/go.sum +++ /dev/null @@ -1,660 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/azure-sdk-for-go v35.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v38.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v46.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= -github.com/Azure/go-autorest/autorest v0.9.3/go.mod h1:GsRuLYvwzLjjjRoWEIyMUaYq8GNUx2nRB378IPt/1p0= -github.com/Azure/go-autorest/autorest v0.9.6/go.mod h1:/FALq9T/kS7b5J5qsQ+RSTUdAmGFqi0vUdVNNx8q630= -github.com/Azure/go-autorest/autorest v0.11.0/go.mod h1:JFgpikqFJ/MleTTxwepExTKnFUKKszPS8UavbQYUMuw= -github.com/Azure/go-autorest/autorest v0.11.5/go.mod h1:foo3aIXRQ90zFve3r0QiDsrjGDUwWhKl0ZOQy1CT14k= -github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0= -github.com/Azure/go-autorest/autorest/adal v0.8.0/go.mod h1:Z6vX6WXXuyieHAXwMj0S6HY6e6wcHn37qQMBQlvY3lc= -github.com/Azure/go-autorest/autorest/adal v0.8.1/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.8.2/go.mod h1:ZjhuQClTqx435SRJ2iMlOxPYt3d2C/T/7TiQCVZSn3Q= -github.com/Azure/go-autorest/autorest/adal v0.9.0/go.mod h1:/c022QCutn2P7uY+/oQWWNcK9YU+MH96NgK+jErpbcg= -github.com/Azure/go-autorest/autorest/adal v0.9.2/go.mod h1:/3SMAM86bP6wC9Ev35peQDUeqFZBMH07vvUOmg4z/fE= -github.com/Azure/go-autorest/autorest/azure/auth v0.5.1/go.mod h1:ea90/jvmnAwDrSooLH4sRIehEPtG/EPUXavDh31MnA4= -github.com/Azure/go-autorest/autorest/azure/cli v0.4.0/go.mod h1:JljT387FplPzBA31vUcvsetLKF3pec5bdAxjVU4kI2s= -github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA= -github.com/Azure/go-autorest/autorest/date v0.2.0/go.mod h1:vcORJHLJEh643/Ioh9+vPmf1Ij9AEBM5FuBIXLmIy0g= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= -github.com/Azure/go-autorest/autorest/mocks v0.3.0/go.mod h1:a8FDP3DYzQ4RYfVAxAN3SVSiiO77gL2j2ronKKP0syM= -github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/to v0.2.0/go.mod h1:GunWKJp1AEqgMaGLV+iocmRAJWqST1wQYhyyjXJ3SJc= -github.com/Azure/go-autorest/autorest/to v0.3.0/go.mod h1:MgwOyqaIuKdG4TL/2ywSsIWKAfJfgHDo8ObuUk3t5sA= -github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= -github.com/Azure/go-autorest/autorest/validation v0.3.0/go.mod h1:yhLgjC0Wda5DYXl6JAsWyUe4KVNffhoDhG0zVzUMo3E= -github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= -github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/GoogleCloudPlatform/k8s-cloud-provider v0.0.0-20190822182118-27a4ced34534/go.mod h1:iroGtC8B3tQiqtds1l+mgk/BBOrxbqjH+eUfFQYRc14= -github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= -github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= -github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= -github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0= -github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= -github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= -github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= -github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.27.1/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.38.28/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= -github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/blang/semver v3.5.0+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/containerd/containerd v1.3.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= -github.com/docker/cli v0.0.0-20191017083524-a8ff7f821017/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/cli v0.0.0-20200109221225-a4f60165b7a3/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= -github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/docker-credential-helpers v0.6.3/go.mod h1:WRaJzqw3CTB9bk10avuGsjVBZsD05qeibJ1/TYlvc0Y= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/elazarl/goproxy v0.0.0-20190911111923-ecfe977594f1/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM= -github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/evanphx/json-patch v4.2.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= -github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-openapi/jsonpointer v0.0.0-20160704185906-46af16f9f7b1/go.mod h1:+35s3my2LFTysnkMfxsJBAMHj/DoqoB9knIWoYG/Vk0= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.0.0-20160704190145-13c6e3589ad9/go.mod h1:W3Z9FmVs9qj+KR4zFKmDPGiLdk1D9Rlm7cyMvf57TTg= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/spec v0.0.0-20160808142527-6aced65f8501/go.mod h1:J8+jY1nAiCcj+friV/PDoE1/3eeccG9LYBs0tYvLOWc= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/swag v0.0.0-20160704191624-1d0bd113de87/go.mod h1:DXUve3Dpr1UfpPtxFw+EFuQ41HhCWZfha5jSVRG7C7I= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= -github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/protobuf v0.0.0-20161109072736-4bd1920723d7/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-containerregistry v0.0.0-20200110202235-f4fb41bf00a3/go.mod h1:2wIuQute9+hhWqvL3vEI7YB0EKluF4WcPzI1eAliazk= -github.com/google/gofuzz v0.0.0-20161122191042-44d81051d367/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.2.2/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= -github.com/googleapis/gnostic v0.4.1/go.mod h1:LRhVm6pbyptWbWbuZ38d1eyptfvIytN3ir6b65WBswg= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/gruntwork-io/go-commons v0.8.0/go.mod h1:gtp0yTtIBExIZp7vyIV9I0XQkVwiQZze678hvDXof78= -github.com/gruntwork-io/terratest v0.36.3 h1:R/wCo6RSPJMQBt573XQy07Ylp7J7BX3SgCB+bi06QfU= -github.com/gruntwork-io/terratest v0.36.3/go.mod h1:GIVJGBV1WIv1vxIG31Ycy0CuHYfXuvvkilNQuC9Wi+o= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= -github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= -github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= -github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= -github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/hcl/v2 v2.8.2/go.mod h1:bQTN5mpo+jewjJgh8jr0JUguIi7qPHUF6yIfAEN3jqY= -github.com/hashicorp/hcl/v2 v2.10.0 h1:1S1UnuhDGlv3gRFV4+0EdwB+znNP5HmcGbIqwnSCByg= -github.com/hashicorp/hcl/v2 v2.10.0/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= -github.com/hashicorp/terraform-json v0.9.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= -github.com/hashicorp/terraform-json v0.12.0 h1:8czPgEEWWPROStjkWPUnTQDXmpmZPlkQAwYYLETaTvw= -github.com/hashicorp/terraform-json v0.12.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/imdario/mergo v0.3.7/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= -github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a/go.mod h1:yL958EeXv8Ylng6IfnvG4oflryUi3vgA3xPs9hmII1s= -github.com/jinzhu/copier v0.3.2 h1:QdBOCbaouLDYaIPFfi1bKv5F5tPpeTwXe4sD0jqtz5w= -github.com/jinzhu/copier v0.3.2/go.mod h1:24xnZezI2Yqac9J61UC6/dG/k76ttpq0DdJI3QmUvro= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/joefitzgerald/rainbow-reporter v0.1.0/go.mod h1:481CNgqmVHQZzdIbN52CupLJyoVwB10FQ/IQlF1pdL8= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/json-iterator/go v0.0.0-20180612202835-f2b4162afba3/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4= -github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-zglob v0.0.1/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= -github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326/go.mod h1:9fxibJccNxU2cnpIKLRRFA7zX7qhkJIQWBb449FYHOo= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/maxbrunsfeld/counterfeiter/v6 v6.2.2/go.mod h1:eD9eIE7cdwcMi9rYluz88Jz2VyhSmden33/aXg4oVIY= -github.com/miekg/dns v1.1.31/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= -github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= -github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180320133207-05fbef0ca5da/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.1/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= -github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/oracle/oci-go-sdk v7.1.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= -github.com/pquerna/otp v1.2.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg= -github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4/go.mod h1:qgYeAmZ5ZIpBWTGllZSQnw97Dj+woV0toclVaRGI8pc= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/sclevine/spec v1.2.0/go.mod h1:W4J29eT/Kzv7/b9IWLB055Z+qvVC9vt0Arko24q7p+U= -github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v0.0.0-20151208002404-e3a8ff8ce365/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/vdemeester/k8s-pkg-credentialprovider v0.0.0-20200107171650-7c61ffa44238/go.mod h1:JwQJCMWpUDqjZrB5jpw0f5VbN7U95zxFy1ZDpoEarGo= -github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= -github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= -github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= -github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= -github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= -github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.8.4 h1:pwhhz5P+Fjxse7S7UriBrMu6AUJSZM5pKqGem1PjGAs= -github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= -github.ibm.com/mathewss/tf-helper v1.5.0 h1:0Z8VWISu1DKF33/3lOippVibzccKOi0brb1fyw+EtCg= -github.ibm.com/mathewss/tf-helper v1.5.0/go.mod h1:SdYJEHWitHaepFhyl1a7ecNI8zoEtf7ZhgGjfwgvfzU= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI= -golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q= -golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 h1:RqytpXGR1iVNX7psjB3ff8y7sNFinVFvkx1c8SjBkio= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181011042414-1f849cf54d09/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190706070813-72ffa07ba3db/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191205215504-7b8c8591a921/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20201110201400-7099162a900a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.6.1-0.20190607001116-5213b8090861/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= -google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -k8s.io/api v0.17.0/go.mod h1:npsyOePkeP0CPwyGfXDHxvypiYMJxBWAMpQxCaJ4ZxI= -k8s.io/api v0.19.3/go.mod h1:VF+5FT1B74Pw3KxMdKyinLo+zynBaMBiAfGMuldcNDs= -k8s.io/apimachinery v0.17.0/go.mod h1:b9qmWdKlLuU9EBh+06BtLcSf/Mu89rWL33naRxs1uZg= -k8s.io/apimachinery v0.19.3/go.mod h1:DnPGDnARWFvYa3pMHgSxtbZb7gpzzAZ1pTfaUNDVlmA= -k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg= -k8s.io/client-go v0.17.0/go.mod h1:TYgR6EUHs6k45hb6KWjVD6jFZvJV4gHDikv/It0xz+k= -k8s.io/client-go v0.19.3/go.mod h1:+eEMktZM+MG0KO+PTkci8xnbCZHvj9TqR6Q1XDUIJOM= -k8s.io/cloud-provider v0.17.0/go.mod h1:Ze4c3w2C0bRsjkBUoHpFi+qWe3ob1wI2/7cUn+YQIDE= -k8s.io/code-generator v0.0.0-20191121015212-c4c8f8345c7e/go.mod h1:DVmfPQgxQENqDIzVR2ddLXMH34qeszkKSdH/N+s+38s= -k8s.io/component-base v0.17.0/go.mod h1:rKuRAokNMY2nn2A6LP/MiwpoaMRHpfRnrPaUJJj1Yoc= -k8s.io/csi-translation-lib v0.17.0/go.mod h1:HEF7MEz7pOLJCnxabi45IPkhSsE/KmxPQksuCrHKWls= -k8s.io/gengo v0.0.0-20190128074634-0689ccc1d7d6/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20190822140433-26a664648505/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/klog v0.0.0-20181102134211-b9b56d5dfc92/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v0.3.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= -k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= -k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a/go.mod h1:1TqjTSzOxsLGIKfj0lK8EeCP7K1iUG65v09OM0/WG5E= -k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6/go.mod h1:UuqjUnNftUyPE5H64/qeyjQoUZhGpeFDVdxjTeEVN2o= -k8s.io/legacy-cloud-providers v0.17.0/go.mod h1:DdzaepJ3RtRy+e5YhNtrCYwlgyK87j/5+Yfp0L9Syp8= -k8s.io/utils v0.0.0-20191114184206-e782cd3c129f/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= -k8s.io/utils v0.0.0-20200729134348-d5654de09c73/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= -modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI= -sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06/go.mod h1:/ULNhyfzRopfcjskuui0cTITekDduZ7ycKN3oUT9R18= -sigs.k8s.io/structured-merge-diff/v4 v4.0.1/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/test/README.md b/test/README.md deleted file mode 100644 index 32c681b..0000000 --- a/test/README.md +++ /dev/null @@ -1,307 +0,0 @@ -# Creating Tests for Your Module - -Your Terraform module is tested in this template using the Golang -[Terratest library](https://github.com/gruntwork-io/terratest) from Gruntwork.io. - -Unit tests consist of running a validate and plan against the module and asserting known values -without running an apply to create infrastructure on an account. These tests are run on any PR. - -Acceptance tests are tests that rely on an apply of the module creating real infrastructure to -perform tests against. In this mode, you can get all the values that would have been unknown with -only a plan, and also perform tests against the application layer of the deployment. These tests are -run when a PR against master is opened, or when creating a release (tag). - -## TerraTest Helper Module - -A helper module (tf-helper) is used in the test to help with setting up the test. It will help with -running and syncing the terraform plan and apply commands, so you don't have to worry about how many -times you call plan or apply. It provides resource helper methods to make it easier to get planned -and changed values. Will only run the tests that do not need an apply when in `-short` (PR) mode. -And it will automatically destroy resources spun up at the end of the test. - -### Getting Started with Tf-Helper - -To initialize tf-helper, you just need to hook it into the `TestMain` function like so: - -```golang -func TestMain(m *testing.M) { - terratest.TestMain(m, &terraform.Options{ - // required, directory where your module is - // unless you have a sub-module, it should just be ".." - TerraformDir: "..", - - // variables for you module, - Vars: map[string]interface{}{ - // pass in the Travis encrypted api key - "ibmcloud_api_key": os.Getenv("API_KEY"), - - // custom module vars below - "vsi_name": "foobar", - }, - }) -} -``` - -The -[Terratest options](https://github.com/gruntwork-io/terratest/blob/master/modules/terraform/options.go#L40) -supplied to `TestMain` will become the `prime` options for the test. Each test file can only have -one set of `prime` options. These will be the options that are used for the plan and apply. If you -want to test more than one set of options, multiple variable sets, you should create additional test -files. Travis is set up to run all the test files in the `test/` directory. However, you may want to -see how existing infrastructure will change when a new set of variables are applied against it. You -can do this with migration plans. - -### Creating Your First Test - -Creating a unit test is straightforward, just run a plan and assert resource values: - -```golang -func TestVSI(t *testing.T) { - // Get the plan (plan struct from resulting terraform plan command) - // tf-helper will only run the plan once, so no need to worry how - // many times you call it in your test file - plan := terratest.GetPlan(t) - - // Get the resources you want to assert against - vsi1 := terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1") - - // Assert stuff - assert.Equal(t, "cx2-2x4", vsi1["profile"]) - assert.NotEqual(t, "us-south-2", vsi1["zone"]) -} -``` - -### Acceptance Test - -Acceptance tests will run when a PR is opened against master. These are tests that create -infrastructure and allow you to run various tests against it. You can also get the output from the -apply to assert against. - -In the test below, the public IP of the VSI created is used to ping and ensure that our -infrastructure was deployed successfully. - -```golang -func TestVPCConnectivity(t *testing.T) { - // does not matter how many times ApplyPlan is called in a test file, it - // will only run the Apply and create the infrastructure one time. Always - // uses the `prime` options specified in TestMain - terratest.ApplyPlan(t) - - // output from the terratest apply - publicIp := terratest.Output(t, "public_ip") - - // This ping is an example, and should probably not be used in an actual test - out, _ := exec.Command("ping", publicIp, "-c 5", "-i 3", "-w 10").Output() - assert.NotContains(t, string(out), "0 received") -} -``` - -#### Testing Against State - -Using version v1.2.0 of tf-helper allows you to also test the values of the state of -terraform after an apply. To get the state you just need to call `GetState`. This will first run -`terraform apply` and then `terraform show` to retrieve the resources from the local state file. -Once you have the state then you can run assertions against it. This works the same way as when -testing against plan data, however uses new functions that allow input of the state object. For -instance in the following example we use -`GetResourceValues` instead of `GetResourcePlannedValues`. See -[tf-helper](https://github.ibm.com/mathewss/tf-helper/tree/v1.2.0/modules/terratest#deep-values) for -more information. Like `GetPlan` and `Apply`, `GetState` is synchronized and will only run once per -test case. - -```golang -func TestVSIValues(t *testing.T) { - state := terratest.GetState(t) - vsi1 := terratest.GetResourceValues(t, state, "ibm_is_instance.vsi1") - - assert.Equal(t, 4, int(vsi1["memory"].(float64))) - assert.Equal(t, "running", vsi1["status"]) - assert.NotEmpty(t, vsi1["id"]) -} -``` - -### Migration (Day 2) Plan Test - -This is a more advanced test where you can test to see what would happen if new variables were used -in a Terraform Plan against the existing state (after an apply). Because this requires state, the -`prime` options are applied and infrastructure is created first. This test will only be run in non -`-short` mode. - -Because you may want to run many different variable sets, each time `GetMigrationPlan` is called, -the Terraform command `plan` will be run. - -```golang -func TestMigrationChange(t *testing.T) { - // Get the migration plan, send in options with new variables - // than were used in our `prime` (TestMain) options - migrationPlan := terratest.GetMigrationPlan(t, &terraform.Options{ - TerraformDir: "..", - Vars: map[string]interface{}{ - "ibmcloud_api_key": os.Getenv("API_KEY"), - "vsi_name": "bazbar", - }, - }) - - resource := "ibm_is_instance.vsi1" - - // Values after the apply - before := terratest.GetResourceBeforeChange(t, migrationPlan, resource) - - // Values with our migration plan run against the state - after := terratest.GetResourceAfterChange(t, migrationPlan, resource) - - // Assert some stuff - assert.Equal(t, "vsi-sandbox-foobar", before["name"]) - assert.Equal(t, "vsi-sandbox-bazbar", after["name"]) -} -``` - -### TF-Helper Resource Helpers - -Using version v1.2.0 of tf-helper, it provides new methods to make testing child resources -easier. The method for retrieving resource from a plan (`GetPlannedResourceValues`) has been updated -to retrieve children resources when given the full path to them. For example: - -To get the name of the primary network adapter from the instance before, you would need to first -cast the vsi's primary network interface to a slice of interfaces, get the first one, then cast -that to a map of interfaces. - -```golang - vsi1 := terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1") - primaryNic := vsi1["primary_network_interface"] - assert.Equal(t, "foobar", primaryNic.([]interface{})[0].(map[string]interface{})["name"]) -``` - -With the upgraded get methods, you can provide the full path to the primary network interface and -be passed back the same map of interfaces you would have had to do all that work to get before. - -```golang - primaryNic := terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1.primary_network_interface") - assert.Equal(t, "foobar", primaryNic["name"]) -``` - -This will always give you back the first element's values of the path provided. If you need to -get the slice to test against, you can use the new method `GetResourcePlannedList`. - -```golang - primaryNic := terratest.GetResourcePlannedList(t, plan, "ibm_is_instance.vsi1.primary_network_interface") - assert.Equal(t, "foobar", primaryNic[0]["name"]) -``` - -The following assertions are all equivalent: - -```golang - plan := terratest.GetPlan(t) - vsi1 := terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1") - - assert.Equal(t, "foobar", terratest.GetChildren(t, vsi1, "primary_network_interface")[0]["name"]) - assert.Equal(t, "foobar", terratest.GetFirstChild(t, vsi1, "primary_network_interface")["name"]) - assert.Equal(t, "foobar", terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1.primary_network_interface")["name"]) - assert.Equal(t, "foobar", terratest.GetResourcePlannedList(t, plan, "ibm_is_instance.vsi1.primary_network_interface")[0]["name"]) -``` - -The methods for state and migration data have also been upgraded. See -[tf-helper](https://github.ibm.com/mathewss/tf-helper/tree/v1.2.0/modules/terratest#deep-values) for -more information. - -### Multiple Variable Sets - -**NOTE: When using multiple test packages, include the `-p 1` switch when executing `go test`.** - -Because we want to be thorough with testing, we will want a way to test different variable sets -that will produce different outcomes. Subtleties like name changes might not need to be tested, -but if your module creates more or different resources based on variable input, we do want to -test for those. - -There are a couple of different ways to do this, one is to create a package directory for each -variable set. This is ok, but it can lead to lots of folders, and take away from your directory -structure you might use for another meaning. - -The recommendation is to use TestCases. - -TestCases were introduced by tf-helper in v1.1.0. TestCases will let you define a structure with -tests that you want to run for a specific set of terraform options, without having to create new -packages. - -With TestCases, you should not initialize the test with TestMain, instead that logic is handled -in each of run of a TestCase. Below is all you would need to create a test. Create additional -tests in the test case by adding Test functions to MyTestCase. - -#### Use of TestCase - -```golang -// This function will be the parent test for your sub-tests -// defined in your MyTestCase struct -func TestMyTestCase(t *testing.T) { - - // IMPORTANT: You MUST pass your test case as a pointer. - terratest.RunTestCase(t, &MyTestCase{}, &terraform.Options{ - - // required, directory where your module is - // unless you have a sub-module, it should just be ".." - TerraformDir: "..", - - // variables for your module, - Vars: map[string]interface{}{ - // pass in the Travis encrypted api key - "ibmcloud_api_key": os.Getenv("API_KEY"), - - // custom module vars below - "vsi_name": "foobar", - }, - }) -} - -// Your test case should just be a new struct type -// feel free to add any fields you'd like to it. -type MyTestCase struct{} - -// Create Tests for MyTestCase, the only difference from a `TestMain` -// type test is that the tests belong to the MyTestCase struct -func (m *MyTestCase) TestVSI(t *testing.T) { - plan := terratest.GetPlan(t) - - // Get the resources you want to assert against - vsi1 := terratest.GetResourcePlannedValues(t, plan, "ibm_is_instance.vsi1") - - // Assert stuff - assert.Equal(t, "cx2-2x4", vsi1["profile"]) - assert.NotEqual(t, "us-south-2", vsi1["zone"]) -} -``` - -Now when you run it the output will be slightly different. The tests in the TestCase -are treated as sub-tests. - -```txt ---- PASS: TestMyTestCase (9.66s) - --- PASS: TestMyTestCase/TestVSI (9.66s) - ... Additional Tests from MyTestCase ---- - ... Tests from -``` - -Create multiple test cases in a single file, or create a file for each test case. Go test will -not care how you do this. All `go test` will look for are functions that start with `Test`. -It's up to you and your team on how best to organize these TestCases for your module. Remember -though, if you use multiple packages you must include `-p 1` switch with `go test` when -executing. - -#### Ordering TestCases - -You may order your tests in your test case by defining the optional function `GetOrderedTests` on -the test case struct. It should accept no parameters and return a slice of function names. The names -returned will be first run in the order supplied, then any additional tests in the test case will be -run (with no guarantee of order) afterwards. - -See -[Ordered TestCases](https://github.ibm.com/mathewss/tf-helper/tree/master/modules/terratest#ordered-testcases) -for more information. - -## Terratest Resources - -To see example tests, including ones in this readme, see the Sandbox link below. - -- [TerraTest Helper](https://github.ibm.com/mathewss/tf-helper/tree/master/modules/terratest) -- [Sandbox Tests](https://github.ibm.com/mathewss/tf-sandbox/tree/master/test) -- [Terratest](https://github.com/gruntwork-io/terratest/tree/master/modules/terraform) diff --git a/test/tf_test.go b/test/tf_test.go deleted file mode 100644 index 7b5b0b4..0000000 --- a/test/tf_test.go +++ /dev/null @@ -1,56 +0,0 @@ -package test - -import ( - "os" - "testing" - - "github.com/gruntwork-io/terratest/modules/terraform" - "github.com/stretchr/testify/assert" - - "github.ibm.com/mathewss/tf-helper/modules/terratest" -) - -// This skeleton uses TestCases and makes it easy to test with multiple variable sets -// and add ordering if needed. See more documentation at -// https://github.ibm.com/mathewss/tf-helper/tree/master/modules/terratest -// and also in the README.md for this directory. - -func TestMyTestCase(t *testing.T) { - terratest.RunTestCase(t, &MyTestCase{}, &terraform.Options{ - // Could be parent dir, or sub in parent - TerraformDir: "..", - - // Variables used in module - Vars: map[string]interface{}{ - // Generally the api key passed - "ibmcloud_api_key": os.Getenv("API_KEY"), - - // Insert variables to test with here - // Each test case can have one set of - // prime options to run terraform - // plan and apply with. - - // To test with another set of options, - // create another test case. - // Test cases maybe in the same directory - // or in sub-directories, based on your - // need and use case. - - // You may test multiple migrations of - // the prime test case to see how - // changes in variables will affect the - // infrastructure that is applied. - }, - }) -} - -// See https://github.ibm.com/workload-eng-services/tf-template-test for an example -// and usage of the tf-helper terratest helper module - -type MyTestCase struct{} - -func (tc *MyTestCase) TestMyResource(t *testing.T) { - // See the README in this directory for examples of how to - // get resources and test from the Terraform plan. - assert.True(t, true) -}