Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Add iscsi option to govcloud platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lander2k2 authored and Karen Almog committed Jan 16, 2018
1 parent 5613b56 commit 3c17ba9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/terraform.tfvars.govcloud
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ tectonic_govcloud_worker_root_volume_size = "30"
// The type of volume for the root block device of worker nodes.
tectonic_govcloud_worker_root_volume_type = "gp2"

// (optional) Start iscsid.service to enable iscsi volume attachment.
// tectonic_iscsi_enabled = "false"

// The path to the tectonic licence file.
// You can download the Tectonic license file from your Account overview page at [1].
//
Expand Down
4 changes: 4 additions & 0 deletions modules/govcloud/master-asg/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,7 @@ variable "dns_server_ip" {
type = "string"
default = ""
}

variable "ign_iscsi_service_id" {
type = "string"
}
4 changes: 4 additions & 0 deletions modules/govcloud/worker-asg/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,7 @@ variable "dns_server_ip" {
type = "string"
default = ""
}

variable "ign_iscsi_service_id" {
type = "string"
}
4 changes: 4 additions & 0 deletions modules/openstack/nodes/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ variable "ign_tectonic_path_unit_id" {
type = "string"
default = ""
}

variable "ign_iscsi_service_id" {
type = "string"
}
4 changes: 4 additions & 0 deletions platforms/govcloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ module "ignition_masters" {
etcd_tls_enabled = "${var.tectonic_etcd_tls_enabled}"
image_re = "${var.tectonic_image_re}"
ingress_ca_cert_pem = "${module.ingress_certs.ca_cert_pem}"
iscsi_enabled = "${var.tectonic_iscsi_enabled}"
kube_ca_cert_pem = "${module.kube_certs.ca_cert_pem}"
kube_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
kubeconfig_fetch_cmd = "/opt/s3-puller.sh ${aws_s3_bucket_object.kubeconfig.bucket}/${aws_s3_bucket_object.kubeconfig.key} /etc/kubernetes/kubeconfig"
Expand Down Expand Up @@ -140,6 +141,7 @@ module "masters" {
ign_init_assets_service_id = "${module.ignition_masters.init_assets_service_id}"
ign_installer_kubelet_env_id = "${module.ignition_masters.installer_kubelet_env_id}"
ign_installer_runtime_mappings_id = "${module.ignition_masters.installer_runtime_mappings_id}"
ign_iscsi_service_id = "${module.ignition_masters.iscsi_service_id}"
ign_k8s_node_bootstrap_service_id = "${module.ignition_masters.k8s_node_bootstrap_service_id}"
ign_kubelet_service_id = "${module.ignition_masters.kubelet_service_id}"
ign_locksmithd_service_id = "${module.ignition_masters.locksmithd_service_id}"
Expand Down Expand Up @@ -175,6 +177,7 @@ module "ignition_workers" {
etcd_ca_cert_pem = "${module.etcd_certs.etcd_ca_crt_pem}"
image_re = "${var.tectonic_image_re}"
ingress_ca_cert_pem = "${module.ingress_certs.ca_cert_pem}"
iscsi_enabled = "${var.tectonic_iscsi_enabled}"
kube_ca_cert_pem = "${module.kube_certs.ca_cert_pem}"
kube_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
kubeconfig_fetch_cmd = "/opt/s3-puller.sh ${aws_s3_bucket_object.kubeconfig.bucket}/${aws_s3_bucket_object.kubeconfig.key} /etc/kubernetes/kubeconfig"
Expand All @@ -197,6 +200,7 @@ module "workers" {
ign_docker_dropin_id = "${module.ignition_workers.docker_dropin_id}"
ign_installer_kubelet_env_id = "${module.ignition_workers.installer_kubelet_env_id}"
ign_installer_runtime_mappings_id = "${module.ignition_workers.installer_runtime_mappings_id}"
ign_iscsi_service_id = "${module.ignition_workers.iscsi_service_id}"
ign_k8s_node_bootstrap_service_id = "${module.ignition_workers.k8s_node_bootstrap_service_id}"
ign_kubelet_service_id = "${module.ignition_workers.kubelet_service_id}"
ign_locksmithd_service_id = "${module.ignition_workers.locksmithd_service_id}"
Expand Down
4 changes: 2 additions & 2 deletions platforms/metal/matchers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "matchbox_group" "controller" {
metadata {
domain_name = "${element(var.tectonic_metal_controller_domains, count.index)}"
etcd_enabled = "${length(compact(var.tectonic_etcd_servers)) != 0 ? "false" : "true"}"
iscsi_enabled = "${var.iscsi_enabled ? true : false}"
iscsi_enabled = "${var.tectonic_iscsi_enabled ? true : false}"
ssh_authorized_key = "${var.tectonic_ssh_authorized_key}"

ign_bootkube_path_unit_json = "${jsonencode(module.bootkube.systemd_path_unit_rendered)}"
Expand Down Expand Up @@ -109,7 +109,7 @@ resource "matchbox_group" "worker" {

metadata {
domain_name = "${element(var.tectonic_metal_worker_domains, count.index)}"
iscsi_enabled = "${var.iscsi_enabled ? true : false}"
iscsi_enabled = "${var.tectonic_iscsi_enabled ? true : false}"
ssh_authorized_key = "${var.tectonic_ssh_authorized_key}"

# extra data
Expand Down

0 comments on commit 3c17ba9

Please sign in to comment.