Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 27, 2022 09:25 am GMT

Offline Terraform Provider

Open-Source Virtualization Solution oVirt ... VM Ansible playbook playbook playbook VM ... Ansible provisioning Terraform provisioning
infrastructure Terraform Provider Terraform version 0.12 0.13 oVirt plugin Terraform v 0.13 Terraform version v0.12 version plugin ... oVirt plugin Terraform Terraform Registry
....

  1. macOS Macbook Pro chip Intel X86_64
  2. download Terraform Provider directory
d8k-bpro > ~ curl -OL https://github.com/oVirt/terraform-provider-ovirt/releases/download/v0.99.0/terraform-provider-ovirt_0.99.0_darwin_amd64.zip  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                 Dload  Upload   Total   Spent    Left  Speed  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 11.1M  100 11.1M    0     0  1824k      0  0:00:06  0:00:06 --:--:-- 2412kd8k-bpro > ~ unzip terraform-provider-ovirt_0.99.0_darwin_amd64.zipArchive:  terraform-provider-ovirt_0.99.0_darwin_amd64.zip  inflating: CHANGELOG.md  inflating: LICENSE  inflating: README.md  inflating: terraform-provider-ovirt_0.99.0d8k-bpro > ~ mkdir -p ~/.terraform.d/providers/local/ovirt/ovirt/0.99/darwin_amd64d8k-bpro > ~ mv terraform-provider-ovirt_0.99.0 ~/.terraform.d/providers/local/ovirt/ovirt/0.99/darwin_amd64
  1. ~/.terraformrc
d8k-bpro > ~ vi ~/.terraformrcprovider_installation {  filesystem_mirror {    path    = "/Users/drs/.terraform.d/providers"  }  direct {    exclude = ["local/*/*"]  }}
  1. Terraform Plugins Terraform Configuration File
d8k-bpro > project1 vi main.tfterraform {  required_providers {    ovirt = {      source  = "local/ovirt/ovirt"      version = "0.99.0"    }  }}provider "ovirt" {   username = "admin@internal"   url = "https://ovirt.example.com/ovirt-engine/api"   password = var.ovirt_password}
  1. Initialization Working Directory
d8k-bpro > project1 terraform initInitializing the backend...Initializing provider plugins...- Finding local/ovirt/ovirt versions matching "0.99.0"...- Finding latest version of hashicorp/null...- Installing local/ovirt/ovirt v0.99.0...- Installed local/ovirt/ovirt v0.99.0 (unauthenticated)- Installing hashicorp/null v3.2.1...- Installed hashicorp/null v3.2.1 (signed by HashiCorp)Terraform has created a lock file .terraform.lock.hcl to record the providerselections it made above. Include this file in your version control repositoryso that Terraform can guarantee to make the same selections by default whenyou run "terraform init" in the future. Warning: Incomplete lock file information for providers Due to your customized provider installation methods, Terraform was forced to calculate lock file checksums locally for the following providers:   - local/ovirt/ovirt The current .terraform.lock.hcl file only includes checksums for darwin_amd64, so Terraform running on another platform will fail to install these providers. To calculate additional checksums for another platform, run:   terraform providers lock -platform=linux_amd64 (where linux_amd64 is the platform to generate)Terraform has been successfully initialized!

: Provider

2022 oVirt Terraform Providers Terraform Registry provider Terraform Provider


Original Link: https://dev.to/rdamrong/offline-terraform-provider-2bgf

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To