change readme and var loads
This commit is contained in:
parent
1736f02460
commit
1505989b53
4 changed files with 3 additions and 4 deletions
|
@ -59,7 +59,7 @@ Edit `default.tfvars` to match your requirement.
|
|||
Run Terraform to create the infrastructure.
|
||||
|
||||
```bash
|
||||
terraform init ../../contrib/terraform/hetzner
|
||||
terraform -chdir=../../contrib/terraform/hetzner init
|
||||
terraform apply --var-file default.tfvars ../../contrib/terraform/hetzner/
|
||||
```
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ module "kubernetes" {
|
|||
|
||||
machines = var.machines
|
||||
|
||||
ssh_public_keys = var.ssh_private_key_path
|
||||
ssh_public_keys = var.ssh_public_keys
|
||||
network_zone = var.network_zone
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ data "template_file" "machine-configs" {
|
|||
name => machine
|
||||
}
|
||||
#template = file("${path.module}/machine-${each.key}.yaml.tmpl")
|
||||
template = file("${path.module}/machine.yaml.tmpl")
|
||||
template = file("${path.module}/template/machine.yaml.tmpl")
|
||||
|
||||
vars = {
|
||||
ssh_keys = jsonencode(var.ssh_public_keys)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
variable "ssh_private_key_path" {}
|
||||
variable "hcloud_token" {}
|
||||
###########################
|
||||
variable "zone" {
|
||||
type = string
|
||||
default = "fsn1"
|
||||
|
|
Loading…
Reference in a new issue