Skip to content

Commit

Permalink
Merge pull request kube-tarian#17 from vpramod03/main
Browse files Browse the repository at this point in the history
Fix cli config creation
  • Loading branch information
jebinjeb authored Aug 3, 2023
2 parents 3c77a11 + 025685d commit c6f9d34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/talos/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,11 @@ resource "null_resource" "bootstrap_etcd" {
}

provisioner "local-exec" {
command = "talosctl --talosconfig scripts/talosconfig kubeconfig ../../../../config/"
command = "talosctl --talosconfig scripts/talosconfig kubeconfig ${var.configfolderpath}"
}

provisioner "local-exec" {
command = "yq -e '.LoadBalancerHost |= \"test.com\"' -i ../../../../config/capten.yaml"
command = "yq -e '.LoadBalancerHost |= \"${aws_lb.traefik.dns_name}\"' -i ${var.configfolderpath}/capten.yaml"
}
depends_on = [ aws_instance.talos_master_instance ]

Expand Down
1 change: 1 addition & 0 deletions aws/talos/values.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ talostg =
traefik_tg_80_name =
traefik_tg_443_name =
traefiklbname =
configfolderpath =
3 changes: 3 additions & 0 deletions aws/talos/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@ variable "traefik_tg_443_name" {

variable "traefiklbname" {
description = "Name of the traefik lb"
}
variable "configfolderpath" {
description = "CLI config folder path"
}

0 comments on commit c6f9d34

Please sign in to comment.