Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
Fix flavor (#2)
Browse files Browse the repository at this point in the history
* Fix flavor

* Fix description
  • Loading branch information
goruha authored Nov 27, 2017
1 parent 4c9a299 commit 5b8eafd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 5b8eafd

Please sign in to comment.