Skip to content

Commit

Permalink
steps/bootstrap: Use the bootstrap ignition in the tfvars if its set.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Yifan Gu committed Sep 21, 2018
1 parent 154b84a commit 0e1b294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion steps/bootstrap/aws/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ locals {
sg_id = "${data.terraform_remote_state.infra.master_sg_id}"
s3_bucket = "${data.terraform_remote_state.infra.s3_bucket}"

ignition_bootstrap = "${data.terraform_remote_state.assets.ignition_bootstrap}"
ignition_bootstrap = "${var.bootstrap_ignition != "" ? var.bootstrap_ignition : data.terraform_remote_state.assets.ignition_bootstrap}"
}
2 changes: 1 addition & 1 deletion steps/bootstrap/libvirt/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ locals {
libvirt_network_id = "${data.terraform_remote_state.infra.libvirt_network_id}"
libvirt_base_volume_id = "${data.terraform_remote_state.infra.libvirt_base_volume_id}"

ignition_bootstrap = "${data.terraform_remote_state.assets.ignition_bootstrap}"
ignition_bootstrap = "${var.bootstrap_ignition != "" ? var.bootstrap_ignition : data.terraform_remote_state.assets.ignition_bootstrap}"
}

0 comments on commit 0e1b294

Please sign in to comment.