github.com/GoogleCloudPlatform/terraformer@v0.8.18/tests/octopusdeploy/README.md (about) 1 # Testing the OctopusDeploy provider 2 3 You will need an OctopusDeploy server: 4 5 ```bash 6 git clone git@github.com:MattHodge/VagrantBoxes.git 7 cd VagrantBoxes/OctopusDeployServer 8 vagrant up 9 cd - 10 ``` 11 12 Download the provider (pick the right one for your platform): 13 14 ```bash 15 PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') 16 PLUGIN_DIR=.terraform/plugins/${PLATFORM}_amd64/ 17 PROVIDER=terraform-provider-octopusdeploy_${PLATFORM}_amd64_v0.5.0 18 mkdir -p "${PLUGIN_DIR}" 19 cd "${PLUGIN_DIR}" 20 curl -sLO "https://github.com/OctopusDeploy/terraform-provider-octopusdeploy/releases/download/v0.5.0/${PROVIDER}.zip" 21 unzip "${PROVIDER}.zip" 22 mv "${PROVIDER}" terraform-provider-octopusdeploy_v0.5.0 23 cd - 24 ``` 25 26 Run `terraform` to create the resources (adjust the values in `provider.tf`): 27 28 ```bash 29 terraform init 30 terraform plan 31 terraform apply --auto-approve 32 ``` 33 34 Import them back with `terraformer`: 35 36 ```bash 37 terraformer import octopusdeploy \ 38 --server "http://localhost:8081" \ 39 --apikey "API-YVLL2ML1XRIBUU8GKJKEMXKPWQ" \ 40 -r accounts,environments,feeds,libraryvariablesets,lifecycles,projects,projectgroups,projecttriggers,tagsets 41 ``` 42 43 Compare the output from `generated/octopusdeploy` with the original files.