add ssh stuff
This commit is contained in:
parent
1505989b53
commit
f8b1b1d3d0
4 changed files with 11 additions and 4 deletions
|
@ -9,6 +9,8 @@ ssh_public_keys = [
|
|||
"ssh-rsa I-did-not-read-the-docs 2",
|
||||
]
|
||||
|
||||
ssh_private_key_path = "flo_hcloud"
|
||||
|
||||
machines = {
|
||||
"master-0" : {
|
||||
"node_type" : "master",
|
||||
|
|
|
@ -9,7 +9,7 @@ module "kubernetes" {
|
|||
|
||||
machines = var.machines
|
||||
|
||||
ssh_public_keys = var.ssh_private_key_path
|
||||
ssh_private_key_path = var.ssh_private_key_path
|
||||
ssh_public_keys = var.ssh_public_keys
|
||||
network_zone = var.network_zone
|
||||
|
||||
|
|
|
@ -25,6 +25,11 @@ variable "ssh_public_keys" {
|
|||
type = list(string)
|
||||
}
|
||||
|
||||
variable "ssh_private_key_path" {
|
||||
description = "Private SSH key which connect to the VMs."
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ssh_whitelist" {
|
||||
description = "List of IP ranges (CIDR) to whitelist for ssh"
|
||||
type = list(string)
|
||||
|
|
|
@ -7,9 +7,9 @@ terraform {
|
|||
null = {
|
||||
source = "hashicorp/null"
|
||||
}
|
||||
template = {
|
||||
source = "hashicorp/template"
|
||||
}
|
||||
#template = {
|
||||
# source = "hashicorp/template"
|
||||
#}
|
||||
}
|
||||
required_version = ">= 0.14"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue