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: 3 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-09-12T21:45:06.000Z (about 2 months ago)
- Last Synced: 2024-10-04T11:59:41.861Z (about 1 month ago)
- Topics: hcloud, hetzner, hetzner-cloud, opentofu, packer, security, terraform, unbound, vpn, wireguard
- Language: HCL
- Homepage:
- Size: 155 KB
- Stars: 59
- Watchers: 3
- 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
```