-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9f316d9
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
terraform-provider-liqo | ||
*.tfstate* | ||
/build | ||
assets | ||
.terraform | ||
_output/ | ||
.vscode | ||
/results | ||
*.dll | ||
*.exe | ||
.DS_Store | ||
example.tf | ||
terraform.tfvars | ||
terraform.tfplan | ||
bin/ | ||
modules-dev/ | ||
/pkg/ | ||
website/.vagrant | ||
website/.bundle | ||
website/build | ||
website/node_modules | ||
.vagrant/ | ||
*.backup | ||
*.log | ||
*.bak | ||
*~ | ||
.*.swp | ||
.idea | ||
*.iml | ||
*.test | ||
*.iml | ||
|
||
website/vendor | ||
|
||
# Test exclusions | ||
!command/test-fixtures/**/*.tfstate | ||
!command/test-fixtures/**/.terraform/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Liqo provider | ||
|
||
Provider for Terraform to perform Liqo operations. | ||
|
||
## Getting Started | ||
Follow this example steps to test locally the implemented provider. | ||
|
||
### Prerequisites | ||
- [Terraform](https://developer.hashicorp.com/terraform/downloads) | ||
- [Liqo CLI tool](https://docs.liqo.io/en/v0.6.1/installation/liqoctl.html) | ||
- [go](https://go.dev/doc/install) | ||
|
||
### Installation | ||
1. in ***.terraform.d*** folder (you should have it in home/\<usr\>/) make directory with this command replacing _architecture_ with your architecture (example: linux_arm64 or linux_amd64): | ||
|
||
``` mkdir -p /plugins/liqo-provider/liqo/liqo/0.0.1/<architecture>/ ``` | ||
|
||
my complete path is the following: | ||
```home/<usr>/.terraform.d/plugins/liqo-provider/liqo/liqo/0.0.1/linux_arm64/``` | ||
|
||
2. from root run command replacing _path_ with the one created in first step: | ||
|
||
```go build -o <path>/terraform-provider-liqo ``` | ||
|
||
3. in your main.tf tell to Terraform to use provider implemented locally by yoursel with this directive in required_providers: | ||
|
||
```source = "liqo-provider/liqo/liqo"``` | ||
|
||
for example: | ||
```hcl | ||
terraform { | ||
required_providers { | ||
liqo = { | ||
source = "liqo-provider/liqo/liqo" | ||
} | ||
} | ||
} | ||
``` | ||
4. run command: | ||
```terraform init ``` | ||
```terraform apply -auto-approve``` |