From 00f105eb9cc57560002b966f048ec13c69ba941f Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Thu, 20 Sep 2018 19:13:42 -0700 Subject: [PATCH 1/2] *: Pass the master and worker ignition content to the terraform. Previously, the installer binary generates the ignitions for master and worker nodes, and pass the filename to the terraform. However, in the new installer binary, we will instead pass the content of the ignition files to terraform. --- config.tf | 8 ++--- installer/pkg/config-generator/ignition.go | 34 ++++++++----------- .../pkg/workflow/fixtures/terraform.tfvars | 5 --- installer/pkg/workflow/init.go | 2 -- installer/pkg/workflow/install.go | 29 +++++++++++++++- modules/aws/master/main.tf | 2 +- pkg/types/config/cluster.go | 24 +++---------- steps/assets/aws/main.tf | 2 +- steps/infra/aws/main.tf | 2 +- steps/infra/libvirt/main.tf | 4 +-- 10 files changed, 56 insertions(+), 56 deletions(-) diff --git a/config.tf b/config.tf index ea06c097009..1d1feaa0feb 100644 --- a/config.tf +++ b/config.tf @@ -294,21 +294,21 @@ variable "tectonic_kubelet_debug_config" { description = "(internal) debug flags for the kubelet (used in CI only)" } -variable "tectonic_ignition_masters" { +variable "ignition_masters" { type = "list" default = [] description = < Date: Fri, 21 Sep 2018 11:46:44 -0700 Subject: [PATCH 2/2] steps/infra: Use the bootstrap ignition in the tfvars if its set. If the "ignition_bootstrap" is non-empty in the terraform.tfvars, then use it as the content for the bootstrap ignition. This will enable the new installer binary to launch a cluster. --- config.tf | 9 +++++++++ steps/infra/aws/inputs.tf | 2 +- steps/infra/libvirt/inputs.tf | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/config.tf b/config.tf index 1d1feaa0feb..a70992438f3 100644 --- a/config.tf +++ b/config.tf @@ -312,6 +312,15 @@ variable "ignition_worker" { EOF } +variable "ignition_bootstrap" { + type = "string" + default = "" + + description = <