Merge pull request #26181 from hashicorp/alisdair/cli-config-implied-local-mirror-directories

website: Fix docs for implied provider FS mirrors
This commit is contained in:
Alisdair McDiarmid 2020-09-14 10:23:09 -04:00 committed by GitHub
commit 7086e23bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -271,18 +271,21 @@ method.
The set of directories Terraform can select as filesystem mirrors depends on The set of directories Terraform can select as filesystem mirrors depends on
the operating system where you are running Terraform: the operating system where you are running Terraform:
* **Windows:** `%APPDATA%/HashiCorp/Terraform/plugins` * **Windows:** `%APPDATA%/terraform.d/plugins` and `%APPDATA%/HashiCorp/Terraform/plugins`
* **Mac OS X:** `~/Library/Application Support/io.terraform/plugins` and * **Mac OS X:** `$HOME/.terraform.d/plugins/`,
`~/Library/Application Support/io.terraform/plugins`, and
`/Library/Application Support/io.terraform/plugins` `/Library/Application Support/io.terraform/plugins`
* **Linux and other Unix-like systems**: Terraform implements the * **Linux and other Unix-like systems**:`$HOME/.terraform.d/plugins/`, and
[XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) [XDG Base Directory](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html)
specification and appends `terraform/plugins` to all of the specified data directories as configured, after appending `terraform/plugins`.
data directories. Without any XDG environment variables set, Terraform Without any XDG environment variables set, Terraform will use
will use `~/.local/share/terraform/plugins`, `~/.local/share/terraform/plugins`,
`/usr/local/share/terraform/plugins`, and `/usr/share/terraform/plugins`. `/usr/local/share/terraform/plugins`, and `/usr/share/terraform/plugins`.
Terraform will create an implied `filesystem_mirror` method block for each of Terraform will create an implied `filesystem_mirror` method block for each of
the directories indicated above that exists when Terraform starts up. the directories indicated above that exists when Terraform starts up.
In addition, if a `terraform.d/plugins` directory exists in the current working
directory, it will be added as a filesystem mirror.
In addition to the zero or more implied `filesystem_mirror` blocks, Terraform In addition to the zero or more implied `filesystem_mirror` blocks, Terraform
also creates an implied `direct` block. Terraform will scan all of the also creates an implied `direct` block. Terraform will scan all of the