added file path to root
This commit is contained in:
@@ -157,7 +157,7 @@ resource "rancher2_cluster_v2" "cluster" {
|
||||
machine_selector_config {
|
||||
config = yamlencode({
|
||||
cloud-provider-name = "harvester"
|
||||
cloud-provider-config = file("${path.module}/${var.cluster_name}-${var.cluster_environment}-kubeconfig")
|
||||
cloud-provider-config = file("${path.root}/${var.cluster_name}-${var.cluster_environment}-kubeconfig")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user