Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDecre committed Dec 21, 2022
0 parents commit 9f316d9
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
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/
44 changes: 44 additions & 0 deletions README.md
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```

0 comments on commit 9f316d9

Please sign in to comment.