diff --git a/main.tf b/main.tf index 3e57257..a2e1d31 100644 --- a/main.tf +++ b/main.tf @@ -9,7 +9,7 @@ module "label" { locals { aggregated_user_data = "${join("\n", var.user_data)}" - template_path = "${path.module}/templates/${var.os}.sh" + template_path = "${path.module}/templates/${var.flavor}.sh" } data "template_file" "default" { diff --git a/templates/ubuntu.sh b/templates/debian-systemd.sh similarity index 100% rename from templates/ubuntu.sh rename to templates/debian-systemd.sh diff --git a/variables.tf b/variables.tf index 7a9fd1b..244942d 100644 --- a/variables.tf +++ b/variables.tf @@ -17,9 +17,9 @@ variable "path" { description = "Path to store user data script in bucket" } -variable "os" { - default = "ubuntu" - description = "Server OS that will execute user data script" +variable "flavor" { + default = "debian-systemd" + description = "Flavor depends of OS and init system" } variable "user_data" {