|
1 | 1 | # Liqo provider
|
2 | 2 |
|
3 |
| - Provider for Terraform to perform Liqo operations. |
| 3 | +> Provider for Terraform to perform Liqo operations. |
4 | 4 |
|
5 | 5 | ## Getting Started
|
| 6 | + |
6 | 7 | Follow this example steps to test locally the implemented provider.
|
7 | 8 |
|
8 | 9 | ### Prerequisites
|
| 10 | + |
9 | 11 | - [Terraform](https://developer.hashicorp.com/terraform/downloads)
|
10 |
| -- [Liqo CLI tool](https://docs.liqo.io/en/v0.6.1/installation/liqoctl.html) |
11 | 12 | - [go](https://go.dev/doc/install)
|
12 | 13 |
|
13 | 14 | ### Installation
|
14 |
| -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): |
15 | 15 |
|
16 |
| - ``` mkdir -p /plugins/liqo-provider/liqo/liqo/0.0.1/<architecture>/ ``` |
| 16 | +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): |
| 17 | + |
| 18 | + `mkdir -p /plugins/liqo-provider/liqo/liqo/0.0.1/<architecture>/` |
17 | 19 |
|
18 | 20 | my complete path is the following:
|
19 |
| - ```home/<usr>/.terraform.d/plugins/liqo-provider/liqo/liqo/0.0.1/linux_arm64/``` |
| 21 | + `home/<usr>/.terraform.d/plugins/liqo-provider/liqo/liqo/0.0.1/linux_arm64/` |
20 | 22 |
|
21 |
| -2. from root run command replacing _path_ with the one created in first step: |
| 23 | +2. from root run command replacing *path* with the one created in first step: |
22 | 24 |
|
23 |
| - ```go build -o <path>/terraform-provider-liqo ``` |
| 25 | + `go build -o <path>/terraform-provider-liqo` |
24 | 26 |
|
25 |
| -3. in your main.tf tell to Terraform to use provider implemented locally by yoursel with this directive in required_providers: |
| 27 | +3. in your main.tf tell to Terraform to use provider implemented locally |
| 28 | +by yourself with this directive in *required_providers*: |
26 | 29 |
|
27 | 30 | ```source = "liqo-provider/liqo/liqo"```
|
28 | 31 |
|
29 | 32 | for example:
|
30 |
| - ```hcl |
| 33 | + |
| 34 | + ```terraform |
31 | 35 | terraform {
|
32 | 36 | required_providers {
|
33 | 37 | liqo = {
|
34 |
| - source = "liqo-provider/liqo/liqo" |
| 38 | + source = "liqo-provider/liqo/liqo" |
35 | 39 | }
|
36 | 40 | }
|
37 | 41 | }
|
38 | 42 | ```
|
39 |
| -
|
40 |
| -4. run command: |
41 |
| -
|
42 |
| - ```terraform init ``` |
43 |
| -
|
44 |
| - ```terraform apply -auto-approve``` |
0 commit comments