https://github.com/colinwilson/terraform-hcloud
https://github.com/colinwilson/terraform-hcloud
cloud-init hcloud hetzner hetzner-cloud terraform terraform-module
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/colinwilson/terraform-hcloud
- Owner: colinwilson
- Created: 2020-05-20T21:50:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T10:13:46.000Z (over 5 years ago)
- Last Synced: 2026-03-06T01:51:51.411Z (4 months ago)
- Topics: cloud-init, hcloud, hetzner, hetzner-cloud, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-hcloud
An opinionated module to create servers in Hetzner Cloud and - by default - to provision the servers with Ansible first and then install Kubernetes with Rancher, but both of these are optional. See the variables file for the available configuration settings.
Example config:
```
cluster_name = ...
ssh_private_key = "~/.ssh/id_rsa"
ssh_public_key = "~/.ssh/id_rsa.pub"
install_ansible_dependencies = true
ansible_playbook_path = ...
ansible_vault_password_path = ...
run_rancher_deploy = true
servers = {
1 = {
name = "master"
private_ip_address = "10.0.0.2"
server_type = "cx41"
image = "centos-7"
location = "nbg1"
backups = true
roles = "--etcd --controlplane" # to deploy Kubernetes with Rancher
},
2 = {
name = "worker"
private_ip_address = "10.0.0.3"
server_type = "cx41"
image = "centos-7"
location = "nbg1"
backups = true
roles = "--worker" # to deploy Kubernetes with Rancher
},
...
}
```