Skip to content

Commit

Permalink
add region config for machine api operator
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed Aug 10, 2018
1 parent dfd1485 commit d4738f2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/bootkube/manifests.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ data "template_file" "manifest_file_list" {
cluster_name = "${var.cluster_name}"
cluster_domain = "${var.base_domain}"
ssh_key = "${var.ssh_key}"
region = "${var.region}"
}
}

Expand Down
1 change: 1 addition & 0 deletions modules/bootkube/resources/manifests/mao-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ data:
sshKey: ${ssh_key}
clusterName: ${cluster_name}
clusterDomain: ${cluster_domain}
region: ${region}
metadata:
name: mao-config-v1
namespace: kube-system
Expand Down
4 changes: 4 additions & 0 deletions modules/bootkube/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,7 @@ variable "base_domain" {
variable "ssh_key" {
type = "string"
}

variable "region" {
type = "string"
}
1 change: 1 addition & 0 deletions steps/assets/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module assets_base {
tectonic_update_channel = "${var.tectonic_update_channel}"
tectonic_versions = "${var.tectonic_versions}"
ssh_key = "${var.tectonic_aws_ssh_key}"
region = "${var.tectonic_aws_region}"
}

# Removing assets is platform-specific
Expand Down
1 change: 1 addition & 0 deletions steps/assets/base/tectonic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module "bootkube" {
worker_ign_config = "${file("worker.ign")}"
base_domain = "${var.tectonic_base_domain}"
ssh_key = "${var.ssh_key}"
region = "${var.region}"
}

module "tectonic" {
Expand Down
5 changes: 5 additions & 0 deletions steps/assets/base/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ variable "ssh_key" {
type = "string"
default = ""
}

variable "region" {
type = "string"
default = ""
}

0 comments on commit d4738f2

Please sign in to comment.