https://github.com/k-candidate/tf-pg-backend
PostgreSQL backend for Terraform
https://github.com/k-candidate/tf-pg-backend
Last synced: 8 days ago
JSON representation
PostgreSQL backend for Terraform
- Host: GitHub
- URL: https://github.com/k-candidate/tf-pg-backend
- Owner: k-candidate
- Created: 2025-01-20T14:04:18.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-27T21:16:56.000Z (12 months ago)
- Last Synced: 2025-01-27T22:26:06.855Z (12 months ago)
- Language: HCL
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tf-pg-backend
PostgreSQL backend for Terraform.
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.10.0 |
| [libvirt](#requirement\_libvirt) | = 0.7.1 |
## Providers
No providers.
## Modules
| Name | Source | Version |
|------|--------|---------|
| [tf-module-kvm-vm](#module\_tf-module-kvm-vm) | git@github.com:k-candidate/tf-module-kvm-vm.git | v1.5.0 |
## Resources
No resources.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [db\_name](#input\_db\_name) | DB name for the Terraform backend | `string` | `"terraform_backend"` | no |
| [db\_password](#input\_db\_password) | Password of the DB User | `string` | `"changeit"` | no |
| [db\_user](#input\_db\_user) | DB User for the Terraform backend | `string` | `"terraform"` | no |
| [image\_source](#input\_image\_source) | Local path or URL for the image | `string` | `"https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-amd64.img"` | no |
| [libvirt\_uri](#input\_libvirt\_uri) | Libvirt URI | `string` | `"qemu:///session"` | no |
| [network\_name](#input\_network\_name) | Name of the libvirt network where this machine will be provisioned | `string` | `"default"` | no |
| [ssh\_private\_key](#input\_ssh\_private\_key) | Private SSH key of the account | `string` | `"~/.ssh/id_ed25519"` | no |
| [ssh\_public\_key](#input\_ssh\_public\_key) | Public SSH key of the account | `string` | `"~/.ssh/id_ed25519.pub"` | no |
| [user\_data](#input\_user\_data) | File for cloud-init user data cfg | `string` | `"cloud-init/user-data.cfg"` | no |
| [vm\_hostname](#input\_vm\_hostname) | Hostname of the machine | `string` | `"pgbackend.domain.dom"` | no |
| [vm\_name](#input\_vm\_name) | Libvirt name or domain of the machine | `string` | `"pg-backend"` | no |
| [vm\_username](#input\_vm\_username) | Username of an account for SSH access | `string` | `"ubuntu"` | no |
## Outputs
No outputs.