Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toolforge/tf-infra-test
deploy things to testlab with terraform
https://github.com/toolforge/tf-infra-test
Last synced: 8 days ago
JSON representation
deploy things to testlab with terraform
- Host: GitHub
- URL: https://github.com/toolforge/tf-infra-test
- Owner: toolforge
- License: mit
- Created: 2023-05-31T18:40:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-03T19:56:10.000Z (5 months ago)
- Last Synced: 2024-11-16T06:08:43.782Z (2 months ago)
- Language: HCL
- Size: 43 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security_group.tf
Awesome Lists containing this project
README
# Overview
This code can be used to test that we can deploy all the infrastructure that we expect to be able to.
# Usage
The tofu-test.sh script should be referenced from a cron that has write access to /var/lib/prometheus/node.d/Example:
```
0 0 * * * cd /root/tf-infra-test ; /bin/bash /root/tf-infra-test/tofu-test.sh
0 0 * * * systemd-cat -t tf-infra-test /root/tf-infra-test/tofu-test.sh # apparently this is the one now (20231201)
```This can also be run manually by running
```
tofu init
tofu apply -var datacenter=
tofu destroy -var datacenter=
```# Tests at time of writing
- VM deploy
- Volume deploy
- Volume attachment to VM
- Trove (MySQL) deploy
- Trove (Mariadb) deploy
- Trove (Postgresql) deploy
- Floating IP allocation
- Floating IP attachment to VM
- Magnum cluster deploy
- Magnum cluster template deploy
- Security group deploy
- Security group attachment to VM
- Prefix puppet hiera deploy
- Web proxy deploy