https://github.com/quortex/terraform-provider-administration
https://github.com/quortex/terraform-provider-administration
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quortex/terraform-provider-administration
- Owner: quortex
- License: apache-2.0
- Created: 2024-07-30T12:10:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-13T11:01:36.000Z (about 1 year ago)
- Last Synced: 2025-03-13T11:34:40.959Z (about 1 year ago)
- Language: Go
- Size: 130 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# terraform-provider-administration
The Terraform provider administration is a plugin for Terraform that allows some administration configuration of quortex solution.
This provider is maintained internally by the Quortex team.
## Documentation
Full, comprehensive documentation is available on the Terraform website:
https://registry.terraform.io/providers/quortex/administration/latest/docs
## Build provider
Run the following command to build the provider
```shell
$ go build -o terraform-provider-administraition
```
## Test sample configuration
First, build and install the provider.
```shell
$ make install
```
Then, navigate to the `examples/development` directory.
```shell
$ cd examples/development
```
Then update the following variables according to your needs in the provider "administration", for instance in your `main.tf` or define the variables in `./local/terraform.tfvars`
```jsonc
provider "administration" {
auth_server = "https://example.auth.server" //can be omitted to use default
host = "http://localhost:8000" //can be omitted to use default
client_id = "my_client_id"
client_secret = "my_client_secret"
}
```
Run the following command to initialize the workspace and apply the sample configuration.
```shell
$ terraform init && terraform apply
```
## Run Terraform tests :
Inspired from : https://developer.hashicorp.com/terraform/tutorials/configuration-language/test
Go into `./local`
Change the configs for this right ones according the credentials in `./local/terraform.tfvars`.
Change the variable `my_local_test_org` you want to test in `./local/tests/setup/main.tf`
To launch local test :
Change in `main.go` : `Address: "localhost/quortex/administration",`
In Makefile make sure that when you build that the OS_ARCH is correct according to your environment.
```shell
$ make install
```
Then :
```shell
$ terraform init && terraform apply
```
## Tests acceptance (yet abandonned)
Test was inspired from this repo : https://github.com/hashicorp/terraform-provider-scaffolding-framework/tree/main