mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
deploy with k3s
This commit is contained in:
parent
0f08cfb0d2
commit
2863062e44
26 changed files with 456 additions and 207 deletions
|
|
@ -2,20 +2,9 @@
|
|||
# or using -var="hcloud_token=..." CLI option
|
||||
variable "hcloud_token" {}
|
||||
|
||||
variable "hcloud_location" {}
|
||||
|
||||
# Configure the Hetzner Cloud Provider
|
||||
provider "hcloud" {
|
||||
version = "~> 1.7.0"
|
||||
provider hcloud {
|
||||
version = "~> 1.16.0"
|
||||
|
||||
token = "${var.hcloud_token}"
|
||||
}
|
||||
|
||||
#######################
|
||||
## Terraform SSH Key ##
|
||||
#######################
|
||||
|
||||
resource "hcloud_ssh_key" "terraform" {
|
||||
name = "terraform"
|
||||
public_key = "${file("./keys/id_terraform.pub")}"
|
||||
token = var.hcloud_token
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue