From 9f316d974fb96214b3d1c632d0446c9100406a40 Mon Sep 17 00:00:00 2001 From: AleDecre Date: Wed, 21 Dec 2022 11:24:45 +0000 Subject: [PATCH] Init --- .gitignore | 37 +++++++++++++++++++++++++++++++++++++ README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0e9e2c3 --- /dev/null +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf6aeba --- /dev/null +++ b/README.md @@ -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/\/) 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// ``` + + my complete path is the following: + ```home//.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 /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```