Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hectorm/wireguard-setup
WireGuard and Unbound setup with Packer and Terraform / OpenTofu.
https://github.com/hectorm/wireguard-setup
hcloud hetzner hetzner-cloud opentofu packer security terraform unbound vpn wireguard
Last synced: 4 days ago
JSON representation
WireGuard and Unbound setup with Packer and Terraform / OpenTofu.
- Host: GitHub
- URL: https://github.com/hectorm/wireguard-setup
- Owner: hectorm
- License: mit
- Created: 2020-01-26T11:02:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T23:04:07.000Z (25 days ago)
- Last Synced: 2024-12-09T18:12:36.297Z (13 days ago)
- Topics: hcloud, hetzner, hetzner-cloud, opentofu, packer, security, terraform, unbound, vpn, wireguard
- Language: HCL
- Homepage:
- Size: 161 KB
- Stars: 59
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# WireGuard + Unbound
[WireGuard](https://wireguard.com) and [Unbound](https://unbound.net) setup with
[Packer](https://packer.io) and [Terraform](https://terraform.io) / [OpenTofu](https://opentofu.org) ready for deployment in
[Hetzner Cloud](https://hetzner.com).## Deployment instructions
1. Copy `./packer/packer.auto.pkrvars.hcl.sample` file to `./packer/packer.auto.pkrvars.hcl` and
fill it with the appropriate values.2. Build the server image with Packer.
```sh
cd ./packer/
packer init ./
packer build -only=hcloud.main ./
```3. Copy `./terraform/terraform.tfvars.sample` file to `./terraform/terraform.tfvars` and fill it
with the appropriate values.4. Deploy the server image with Terraform.
```sh
cd ./terraform/
terraform init
terraform apply
```