diff --git a/src/terraform/examples/vfxt/run-local/README.md b/src/terraform/examples/vfxt/run-local/README.md index 46961bce..3d2555f6 100644 --- a/src/terraform/examples/vfxt/run-local/README.md +++ b/src/terraform/examples/vfxt/run-local/README.md @@ -8,27 +8,34 @@ This is useful in locked down environments where it is difficult to reach the co To run the example, execute the [1-filer example](../1-filer), but comment out the avere_vfxt and the last three output variables. -1. once complete, login to the controller, and download the following two files: +1. once complete, login to the controller using the "controller_address" + +2. install unzip +```bash +sudo apt-get install unzip +``` + +3. install the provider and terraform and the main.tf file: ```bash cd mkdir -p ~/.terraform.d/plugins wget -O ~/.terraform.d/plugins/terraform-provider-avere https://github.com/Azure/Avere/releases/download/tfprovider_v0.7.3/terraform-provider-avere -sudo apt-get install unzip +chmod +x ~/.terraform.d/plugins/terraform-provider-avere wget https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip unzip terraform_0.12.24_linux_amd64.zip sudo mv terraform /usr/bin -mkdir vfxt +rm terraform_0.12.24_linux_amd64.zip +mkdir -p vfxt cd vfxt wget -O main.tf https://raw.githubusercontent.com/Azure/Avere/master/src/terraform/examples/vfxt/run-local/main.tf ``` +4. `vi main.tf` to edit the local variables section at the top of the file, to customize to your preferences. -2. `vi main.tf` to edit the local variables section at the top of the file, to customize to your preferences. +5. execute `terraform init` in the directory of `main.tf`. -3. execute `terraform init` in the directory of `main.tf`. +6. execute `terraform apply -auto-approve` to build the vfxt cluster -4. execute `terraform apply -auto-approve` to build the vfxt cluster - -5. in a separate shell, you can tail the log files in the home directory: `tail -f ~/*.log` +7. in a separate shell, you can tail the log files in the home directory: `tail -f ~/*.log` Once installed you will be able to login and use the vFXT cluster according to the vFXT documentation: https://docs.microsoft.com/en-us/azure/avere-vfxt/avere-vfxt-cluster-gui.