From 5b8eafdd795ea3c903520e0145ed9ca19fb7f7d9 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Mon, 27 Nov 2017 13:46:23 +0600 Subject: [PATCH] Fix flavor (#2) * Fix flavor * Fix description --- main.tf | 2 +- templates/{ubuntu.sh => debian-systemd.sh} | 0 variables.tf | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename templates/{ubuntu.sh => debian-systemd.sh} (100%) 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" {