From af592adb9b1b7e8c7b647b7f64ef95ad8ba6fca1 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Wed, 9 Mar 2022 05:42:56 +0100 Subject: [PATCH] moved to random string for the node name --- modules/host/main.tf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/host/main.tf b/modules/host/main.tf index a4de8c6..70b2aaa 100644 --- a/modules/host/main.tf +++ b/modules/host/main.tf @@ -1,5 +1,10 @@ -resource "random_pet" "server" { - length = 1 +resource "random_string" "server" { + length = 3 + lower = true + special = false + number = false + upper = false + keepers = { # We re-create the id (and server) whenever one of those attributes # changes. This should include all input variables to this module,