Files
Armen Hakobian c586832e1c ensure to create multiple worker node (#17)
* ensure to create multiple worker node

* fixed issues depends on creating cluster with multiple nodes
2024-06-04 19:23:15 +04:00

24 lines
776 B
HCL

resource "github_repository" "argocd_applications" {
depends_on = [proxmox_vm_qemu.controlplane, proxmox_vm_qemu.worker]
name = var.cluster_name
description = "This repo is for the ArgoCD Applications."
vulnerability_alerts = true
template {
owner = "infraheads"
repository = "turnk8s_template_repo"
include_all_branches = false
}
}
resource "github_repository_file" "argocd_application" {
repository = github_repository.argocd_applications.name
branch = "main"
file = "argocd_applications/infraheads.yaml"
content = templatefile("${path.module}/templates/argocd_application.yaml.tpl",
{
sourceRepoURL = github_repository.argocd_applications.http_clone_url
}
)
}