bfebcfa2c5
* fix(misc): terraform/aws - handles deployment with a single availability zone - handles deployment with more than two availability zone - handles etcd collocation with control-plane nodes (`aws_etcd_num=0`) - allows to set a bastion instances count (`aws_bastion_num`) - allows to set bastion/etcd/control-plane/workers rootfs volume size - removes variables from terraform.tfvars that were not re-used - adds .terraform.lock.hcl to .gitignore - changes/updates base image from ubuntu-18.03 to debian-10 tested by a few coworkers of mine, and myself: thanks for the outstanding work, on both those terraform samples and kubespray playbooks. I did not test ubuntu deployments, I could still swap from buster to focal. LMK. * fix(gitlab-ci) AFAIU, terraform.tfvars indentation should be fixed for / no diff returned running `terraform fmt -check -diff` https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/1445622114
27 lines
622 B
HCL
27 lines
622 B
HCL
output "bastion_ip" {
|
|
value = join("\n", aws_instance.bastion-server.*.public_ip)
|
|
}
|
|
|
|
output "masters" {
|
|
value = join("\n", aws_instance.k8s-master.*.private_ip)
|
|
}
|
|
|
|
output "workers" {
|
|
value = join("\n", aws_instance.k8s-worker.*.private_ip)
|
|
}
|
|
|
|
output "etcd" {
|
|
value = join("\n", ((var.aws_etcd_num > 0) ? (aws_instance.k8s-etcd.*.private_ip) : (aws_instance.k8s-master.*.private_ip)))
|
|
}
|
|
|
|
output "aws_elb_api_fqdn" {
|
|
value = "${module.aws-elb.aws_elb_api_fqdn}:${var.aws_elb_api_port}"
|
|
}
|
|
|
|
output "inventory" {
|
|
value = data.template_file.inventory.rendered
|
|
}
|
|
|
|
output "default_tags" {
|
|
value = var.default_tags
|
|
}
|