Skip to content

Commit

Permalink
cleanr up
Browse files Browse the repository at this point in the history
  • Loading branch information
JWDobken committed Oct 15, 2022
1 parent f302952 commit 816eb06
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 123 deletions.
24 changes: 0 additions & 24 deletions demo/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions demo/demo.tfvars

This file was deleted.

87 changes: 0 additions & 87 deletions demo/main.tf

This file was deleted.

2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module "cluster" {
control_plane_name_format = var.control_plane_name_format
worker_type = var.worker_type
worker_count = var.worker_count
workername_format = var.workername_format
worker_name_format = var.worker_name_format
}

module "firewall" {
Expand Down
2 changes: 1 addition & 1 deletion modules/cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "hcloud_server" "control_plane_node" {

resource "hcloud_server" "worker_node" {
count = var.worker_count
name = format(var.workername_format, count.index + 1)
name = format(var.worker_name_format, count.index + 1)
location = var.location
image = var.image
server_type = var.worker_type
Expand Down
2 changes: 1 addition & 1 deletion modules/cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ variable "worker_count" {
type = number
}

variable "workername_format" {
variable "worker_name_format" {
type = string
}

Expand Down
2 changes: 1 addition & 1 deletion modules/cluster/version.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cluster/version.tf
terraform {
required_version = ">= 1.2.8"
required_version = ">= 1.1.9"
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ variable "worker_count" {
type = number
}

variable "workername_format" {
variable "worker_name_format" {
description = "(Optional) - Format for the worker node names, defaults to 'worker-0'."
type = string
default = "worker-%d"
Expand Down

0 comments on commit 816eb06

Please sign in to comment.