Requirements
- Terraform >= 0.13.x
- Go 1.16 to build the provider plugin
Install The Provider
Option 1: Download and Install The Provider From Releases
tar -zxvf terraform-provider-harvester-amd64.tar.gz
./install-terraform-provider-harvester.sh
Option 2: Build and Install The Provider Manually
1. Build the provider
Clone repository
git clone git@github.com:harvester/terraform-provider-harvester
Enter the provider directory and build the provider
This will build the provider and put the provider binary in ./bin
.
cd terraform-provider-harvester
make
2. Install the provider
The expected location for the Harvester provider for that target platform within one of the local search directories would be like the following:
registry.terraform.io/harvester/harvester/0.2.6/linux_amd64/terraform-provider-harvester_v0.2.6
The default location for locally-installed providers is one of the following, depending on which operating system you are running Terraform under:
- Windows: %APPDATA%\terraform.d\plugins
- All other systems: ~/.terraform.d/plugins
Place the provider into the plugins directory, for example:
version=0.2.6
arch=linux_amd64
terraform_harvester_provider_bin=./bin/terraform-provider-harvester
terraform_harvester_provider_dir="${HOME}/.terraform.d/plugins/registry.terraform.io/harvester/harvester/${version}/${arch}/"
mkdir -p "${terraform_harvester_provider_dir}"
cp ${terraform_harvester_provider_bin} "${terraform_harvester_provider_dir}/terraform-provider-harvester_v${version}"}
Using the provider
After placing it into your plugins directory, run terraform init
to initialize it.
Documentation about the provider specific configuration options can be found on the docs directory.