From 9d4cbb38f6e214d692c4a3ce357fc00a2c2c5ad6 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Tue, 1 May 2018 21:41:22 -0700 Subject: [PATCH] Rerun terraform fmt --- .../fedora-atomic/kubernetes/bootkube.tf | 2 +- .../fedora-atomic/kubernetes/profiles.tf | 14 ++++---- .../fedora-atomic/kubernetes/variables.tf | 3 +- .../fedora-atomic/kubernetes/controllers.tf | 2 +- .../container-linux/kubernetes/apiserver.tf | 34 ++++++++++--------- .../container-linux/kubernetes/controllers.tf | 1 + .../fedora-atomic/kubernetes/apiserver.tf | 34 ++++++++++--------- .../fedora-atomic/kubernetes/controllers.tf | 1 + 8 files changed, 50 insertions(+), 41 deletions(-) diff --git a/bare-metal/fedora-atomic/kubernetes/bootkube.tf b/bare-metal/fedora-atomic/kubernetes/bootkube.tf index 0eff2a3a..b2a336e8 100644 --- a/bare-metal/fedora-atomic/kubernetes/bootkube.tf +++ b/bare-metal/fedora-atomic/kubernetes/bootkube.tf @@ -1,7 +1,7 @@ # Self-hosted Kubernetes assets (kubeconfig, manifests) module "bootkube" { source = "git::https://github.com/poseidon/terraform-render-bootkube.git?ref=911f4115088b7511f29221f64bf8e93bfa9ee567" - + cluster_name = "${var.cluster_name}" api_servers = ["${var.k8s_domain_name}"] etcd_servers = ["${var.controller_domains}"] diff --git a/bare-metal/fedora-atomic/kubernetes/profiles.tf b/bare-metal/fedora-atomic/kubernetes/profiles.tf index 4eb761c2..3409cfc2 100644 --- a/bare-metal/fedora-atomic/kubernetes/profiles.tf +++ b/bare-metal/fedora-atomic/kubernetes/profiles.tf @@ -1,6 +1,6 @@ locals { default_assets_endpoint = "${var.matchbox_http_endpoint}/assets/fedora/27" - atomic_assets_endpoint = "${var.atomic_assets_endpoint != "" ? var.atomic_assets_endpoint : local.default_assets_endpoint}" + atomic_assets_endpoint = "${var.atomic_assets_endpoint != "" ? var.atomic_assets_endpoint : local.default_assets_endpoint}" } // Cached Fedora Install profile (from matchbox /assets cache) @@ -36,14 +36,15 @@ data "template_file" "install-kickstarts" { vars { matchbox_http_endpoint = "${var.matchbox_http_endpoint}" atomic_assets_endpoint = "${local.atomic_assets_endpoint}" - mac = "${element(concat(var.controller_macs, var.worker_macs), count.index)}" + mac = "${element(concat(var.controller_macs, var.worker_macs), count.index)}" } } // Kubernetes Controller profiles resource "matchbox_profile" "controllers" { - count = "${length(var.controller_names)}" - name = "${format("%s-controller-%s", var.cluster_name, element(var.controller_names, count.index))}" + count = "${length(var.controller_names)}" + name = "${format("%s-controller-%s", var.cluster_name, element(var.controller_names, count.index))}" + # cloud-init generic_config = "${element(data.template_file.controller-configs.*.rendered, count.index)}" } @@ -65,8 +66,9 @@ data "template_file" "controller-configs" { // Kubernetes Worker profiles resource "matchbox_profile" "workers" { - count = "${length(var.worker_names)}" - name = "${format("%s-worker-%s", var.cluster_name, element(var.worker_names, count.index))}" + count = "${length(var.worker_names)}" + name = "${format("%s-worker-%s", var.cluster_name, element(var.worker_names, count.index))}" + # cloud-init generic_config = "${element(data.template_file.worker-configs.*.rendered, count.index)}" } diff --git a/bare-metal/fedora-atomic/kubernetes/variables.tf b/bare-metal/fedora-atomic/kubernetes/variables.tf index 73071000..4095baf3 100644 --- a/bare-metal/fedora-atomic/kubernetes/variables.tf +++ b/bare-metal/fedora-atomic/kubernetes/variables.tf @@ -11,8 +11,9 @@ variable "matchbox_http_endpoint" { } variable "atomic_assets_endpoint" { - type = "string" + type = "string" default = "" + description = <