Skip to content

Commit

Permalink
fix: terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Dupain committed Nov 2, 2024
1 parent 8ea6ea3 commit 29a7d79
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions examples/0-cluster-demo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ module "talos-k8s-cluster" {
proxmox = {
endpoint = "https://pve.domain:8006"
insecure = true
username = "user"
password = "password"
api_token = "user@pve!terraform=secret"
username = "user"
password = "password"
api_token = "user@pve!terraform=secret"
}

github = {
Expand Down
6 changes: 3 additions & 3 deletions examples/1-cluster-gpu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ module "talos-k8s-cluster" {
}

proxmox = {
endpoint = "https://pve.domain:8006"
endpoint = "https://pve.domain:8006"
insecure = true
username = "user"
password = "password"
username = "user"
password = "password"
# using PROXMOX_VE_USERNAME instead of api token
# https://github.com/Telmate/terraform-provider-proxmox/issues/764
# see .envrc
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "talos_k8s" {
}

module "fluxcd" {
count = (var.github == null) ? 0 : 1
count = (var.github == null) ? 0 : 1
depends_on = [module.talos_k8s]
source = "./modules/fluxcd"

Expand Down
12 changes: 6 additions & 6 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ output "vm_ipv4_address_vms" {

output "kube_config" {
description = "Retrieves the kubeconfig for a k8s Talos cluster"
value = module.talos_k8s.kube_config.kubeconfig_raw
sensitive = true
value = module.talos_k8s.kube_config.kubeconfig_raw
sensitive = true
}

output "talos_config" {
description = "Retrieves the talosconfig for a k8s Talos cluster"
value = module.talos_k8s.talos_config.talos_config
sensitive = true
value = module.talos_k8s.talos_config.talos_config
sensitive = true
}

resource "local_file" "talos_config" {
Expand All @@ -31,6 +31,6 @@ resource "local_file" "kube_config" {

output "cluster_name" {
description = "Retrieves the name for a k8s Talos cluster"
value = var.cluster.name
sensitive = false
value = var.cluster.name
sensitive = false
}
6 changes: 3 additions & 3 deletions providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ provider "flux" {
}

git = {
url = (var.github !=null) ? "https://github.com/${var.github.org}/${var.github.repository}.git" : "https://dummy"
url = (var.github != null) ? "https://github.com/${var.github.org}/${var.github.repository}.git" : "https://dummy"
http = {
username = "git" # This can be any string when using a personal access token
password = (var.github !=null) ? var.github.token : null
password = (var.github != null) ? var.github.token : null
}
}
}
}

0 comments on commit 29a7d79

Please sign in to comment.