From c1a993cd22f3135ad024b6c558f8f6c11330092a Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 2 May 2021 21:30:26 +0700 Subject: [PATCH] Restructure --- infra/{vpn.tf => base.tf} | 0 infra/bootstrap.tf | 4 ---- infra/cluster.tf | 5 +++++ 3 files changed, 5 insertions(+), 4 deletions(-) rename infra/{vpn.tf => base.tf} (100%) delete mode 100644 infra/bootstrap.tf diff --git a/infra/vpn.tf b/infra/base.tf similarity index 100% rename from infra/vpn.tf rename to infra/base.tf diff --git a/infra/bootstrap.tf b/infra/bootstrap.tf deleted file mode 100644 index f35bd070..00000000 --- a/infra/bootstrap.tf +++ /dev/null @@ -1,4 +0,0 @@ -module "rke_cluster_bootstrap" { - source = "./modules/kubernetes-cluster-bootstrap" - kube_config = rke_cluster.cluster.kube_config_yaml -} diff --git a/infra/cluster.tf b/infra/cluster.tf index 078ef348..5b533f65 100644 --- a/infra/cluster.tf +++ b/infra/cluster.tf @@ -172,3 +172,8 @@ resource "local_file" "kube_config_yaml" { sensitive_content = rke_cluster.cluster.kube_config_yaml file_permission = "0600" } + +module "rke_cluster_bootstrap" { + source = "./modules/kubernetes-cluster-bootstrap" + kube_config = rke_cluster.cluster.kube_config_yaml +}