mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
bitwarden deployment
This commit is contained in:
commit
42ec743a00
24 changed files with 498 additions and 0 deletions
25
provider_hcloud.tf
Executable file
25
provider_hcloud.tf
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
# Set the variable value in *.tfvars file
|
||||
# or using -var="hcloud_token=..." CLI option
|
||||
variable "hcloud_token" {}
|
||||
|
||||
variable "hcloud_location" {}
|
||||
|
||||
# Configure the Hetzner Cloud Provider
|
||||
provider "hcloud" {
|
||||
version = "~> 1.7.0"
|
||||
|
||||
token = "${var.hcloud_token}"
|
||||
}
|
||||
|
||||
#######################
|
||||
## Terraform SSH Key ##
|
||||
#######################
|
||||
|
||||
resource "hcloud_ssh_key" "terraform" {
|
||||
name = "terraform"
|
||||
public_key = "${file("./keys/id_terraform.pub")}"
|
||||
|
||||
labels = {
|
||||
"description" = "Used by terraform to provision nodes"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue