Last active
October 23, 2020 06:46
-
-
Save Mohitp98/3889d799af53a4157ef92378f23185a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user@tmpl-centOs7 ~]$ pwd | |
/home/user | |
# With multiple filesytem_mirror | |
[user@tmpl-centOs7 Examples]$ cat ~/.terraformrc | |
provider_installation { | |
filesystem_mirror { | |
path = "/home/user/.terraform.d" | |
exclude = ["registry.terraform.io/*/*"] | |
} | |
filesystem_mirror { | |
path = "/home/user/go-workspace/src/github.com/userDev/terraform-provider-bigfix/Examples" | |
exclude = ["registry.terraform.io/*/*"] | |
} | |
} | |
# tree structures of above mentioned paths | |
[user@tmpl-centOs7 ~]$ tree .terraform.d/ | |
.terraform.d/ | |
|-- checkpoint_cache | |
|-- checkpoint_signature | |
`-- plugins | |
`-- linux_amd64 | |
|-- terraform-provider-ad | |
`-- terraform-provider-bigfix | |
[user@tmpl-centOs7 Examples]$ tree | |
. | |
|-- main.tf | |
|-- plugins | |
| `-- linux_amd64 | |
| `-- terraform-provider-bigfix | |
|-- variables.tf | |
`-- var.tfvars | |
# Detailed TF Log with TRACE | |
[user@tmpl-centOs7 Examples]$ terraform init | |
2020/10/23 11:58:32 [INFO] Terraform version: 0.13.5 | |
2020/10/23 11:58:32 [INFO] Go runtime version: go1.14.7 | |
2020/10/23 11:58:32 [INFO] CLI args: []string{"/home/user/setup/terraform", "init"} | |
2020/10/23 11:58:32 [DEBUG] Attempting to open CLI config file: /home/user/.terraformrc | |
2020/10/23 11:58:32 Loading CLI configuration from /home/user/.terraformrc | |
2020/10/23 11:58:32 [DEBUG] checking for credentials in "/home/user/.terraform.d/plugins" | |
2020/10/23 11:58:32 [DEBUG] checking for credentials in "/home/user/.terraform.d/plugins/linux_amd64" | |
2020/10/23 11:58:32 [DEBUG] Explicit provider installation configuration is set | |
2020/10/23 11:58:32 [TRACE] Selected provider installation method cliconfig.ProviderInstallationFilesystemMirror("/home/user/.terraform.d") with includes [] and excludes [registry.terraform.io/*/*] | |
2020/10/23 11:58:32 [TRACE] Selected provider installation method cliconfig.ProviderInstallationFilesystemMirror("/home/user/go-workspace/src/github.com/userDev/terraform-provider-bigfix/Examples") with includes [] and excludes [registry.terraform.io/*/*] | |
2020/10/23 11:58:32 [INFO] CLI command args: []string{"init"} | |
Initializing the backend... | |
2020/10/23 11:58:32 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2020/10/23 11:58:32 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2020/10/23 11:58:32 [DEBUG] New state was assigned lineage "63052c61-152b-e213-fe84-6eaa99b7d8b6" | |
2020/10/23 11:58:32 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) | |
2020/10/23 11:58:32 [TRACE] Meta.Backend: instantiated backend of type <nil> | |
2020/10/23 11:58:32 [DEBUG] checking for provisioner in "." | |
2020/10/23 11:58:32 [DEBUG] checking for provisioner in "/home/user/setup" | |
2020/10/23 11:58:32 [DEBUG] checking for provisioner in "/home/user/.terraform.d/plugins" | |
2020/10/23 11:58:32 [DEBUG] checking for provisioner in "/home/user/.terraform.d/plugins/linux_amd64" | |
2020/10/23 11:58:32 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory | |
2020/10/23 11:58:32 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend | |
2020/10/23 11:58:32 [TRACE] backend/local: state manager for workspace "default" will: | |
- read initial snapshot from terraform.tfstate | |
- write new snapshots to terraform.tfstate | |
- create any backup at terraform.tfstate.backup | |
2020/10/23 11:58:32 [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate | |
2020/10/23 11:58:32 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay | |
2020/10/23 11:58:32 [TRACE] statemgr.Filesystem: read nil snapshot | |
2020/10/23 11:58:32 [TRACE] providercache.fillMetaCache: scanning directory .terraform/plugins | |
2020/10/23 11:58:32 [TRACE] getproviders.SearchLocalDirectory: .terraform/plugins is a symlink to .terraform/plugins | |
Initializing provider plugins... | |
- Finding latest version of hashicorp/bigfix... | |
Error: Failed to query available provider packages | |
Could not retrieve the list of available versions for provider | |
hashicorp/bigfix: provider registry.terraform.io/hashicorp/bigfix was not | |
found in any of the search locations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment