formatting

This commit is contained in:
Luigi Oliveira 2024-10-24 03:03:03 -03:00
parent 204f04081a
commit b414d340a8
7 changed files with 14 additions and 14 deletions

View file

@ -48,7 +48,7 @@ module "icecast" {
} }
module "twitchminer" { module "twitchminer" {
source = "./modules/twitchminer" source = "./modules/twitchminer"
discord_webhook = var.discord_webhook discord_webhook = var.discord_webhook
twitch_username = var.twitch_username twitch_username = var.twitch_username
twitch_password = var.twitch_password twitch_password = var.twitch_password

View file

@ -1,6 +1,6 @@
resource "nomad_job" "app" { resource "nomad_job" "app" {
jobspec = templatefile("${path.module}/conf/icecast.hcl", { jobspec = templatefile("${path.module}/conf/icecast.hcl", {
NOMAD_ALLOC_DIR = "/alloc" NOMAD_ALLOC_DIR = "/alloc"
}) })
} }

View file

@ -4,7 +4,7 @@ resource "nomad_job" "app" {
POSTGREE_ENDPOINT = var.postgree_endpoint POSTGREE_ENDPOINT = var.postgree_endpoint
POSTGREE_USER = var.postgree_user POSTGREE_USER = var.postgree_user
POSTGREE_PASSWORD = var.postgree_password POSTGREE_PASSWORD = var.postgree_password
KC_USER = var.KC_USER KC_USER = var.KC_USER
KC_PASSWORD = var.KC_PASSWORD KC_PASSWORD = var.KC_PASSWORD
}) })
} }

View file

@ -1,5 +1,5 @@
resource "nomad_job" "app" { resource "nomad_job" "app" {
jobspec = templatefile("${path.module}/conf/redis.hcl", { jobspec = templatefile("${path.module}/conf/redis.hcl", {
NOMAD_ALLOC_DIR = "/alloc" NOMAD_ALLOC_DIR = "/alloc"
}) })
} }

View file

@ -1,6 +1,6 @@
resource "nomad_job" "app_twitchminer" { resource "nomad_job" "app_twitchminer" {
jobspec = templatefile("${path.module}/conf/twitchminer.hcl", { jobspec = templatefile("${path.module}/conf/twitchminer.hcl", {
NOMAD_ALLOC_DIR = "/alloc" NOMAD_ALLOC_DIR = "/alloc"
RUN_FILE = data.template_file.runpy.rendered RUN_FILE = data.template_file.runpy.rendered
}) })
} }

View file

@ -4,11 +4,11 @@ variable "discord_webhook" {
} }
variable "twitch_username" { variable "twitch_username" {
type = string type = string
description = "Twitch username" description = "Twitch username"
} }
variable "twitch_password" { variable "twitch_password" {
type = string type = string
description = "Twitch password" description = "Twitch password"
} }

View file

@ -34,16 +34,16 @@ variable "kc_password" {
} }
variable "discord_webhook" { variable "discord_webhook" {
type = string type = string
description = "Discord webhook" description = "Discord webhook"
} }
variable "twitch_username" { variable "twitch_username" {
type = string type = string
description = "Twitch username" description = "Twitch username"
} }
variable "twitch_password" { variable "twitch_password" {
type = string type = string
description = "Twitch password" description = "Twitch password"
} }