Rename Fedora CoreOS fcc directory to butane

* Align both Fedora CoreOS and Flatcar Linux keeping Butane
Configs in a directory called butane
This commit is contained in:
Dalton Hubble 2022-08-10 09:10:18 -07:00
parent 679f8b878f
commit e5d0e2d48b
18 changed files with 10 additions and 10 deletions

View File

@ -49,7 +49,7 @@ resource "aws_instance" "controllers" {
# Fedora CoreOS controllers
data "ct_config" "controllers" {
count = var.controller_count
content = templatefile("${path.module}/fcc/controller.yaml", {
content = templatefile("${path.module}/butane/controller.yaml", {
# Cannot use cyclic dependencies on controllers or their DNS records
etcd_name = "etcd${count.index}"
etcd_domain = "${var.cluster_name}-etcd${count.index}.${var.dns_zone}"

View File

@ -70,7 +70,7 @@ resource "aws_launch_configuration" "worker" {
# Fedora CoreOS worker
data "ct_config" "worker" {
content = templatefile("${path.module}/fcc/worker.yaml", {
content = templatefile("${path.module}/butane/worker.yaml", {
kubeconfig = indent(10, var.kubeconfig)
ssh_authorized_key = var.ssh_authorized_key
cluster_dns_service_ip = cidrhost(var.service_cidr, 10)

View File

@ -114,7 +114,7 @@ resource "azurerm_network_interface_backend_address_pool_association" "controlle
# Fedora CoreOS controllers
data "ct_config" "controllers" {
count = var.controller_count
content = templatefile("${path.module}/fcc/controller.yaml", {
content = templatefile("${path.module}/butane/controller.yaml", {
# Cannot use cyclic dependencies on controllers or their DNS records
etcd_name = "etcd${count.index}"
etcd_domain = "${var.cluster_name}-etcd${count.index}.${var.dns_zone}"

View File

@ -72,7 +72,7 @@ resource "azurerm_monitor_autoscale_setting" "workers" {
# Fedora CoreOS worker
data "ct_config" "worker" {
content = templatefile("${path.module}/fcc/worker.yaml", {
content = templatefile("${path.module}/butane/worker.yaml", {
kubeconfig = indent(10, var.kubeconfig)
ssh_authorized_key = var.ssh_authorized_key
cluster_dns_service_ip = cidrhost(var.service_cidr, 10)

View File

@ -44,7 +44,7 @@ resource "matchbox_profile" "controllers" {
# Fedora CoreOS controllers
data "ct_config" "controllers" {
count = length(var.controllers)
content = templatefile("${path.module}/fcc/controller.yaml", {
content = templatefile("${path.module}/butane/controller.yaml", {
domain_name = var.controllers.*.domain[count.index]
etcd_name = var.controllers.*.name[count.index]
etcd_initial_cluster = join(",", formatlist("%s=https://%s:2380", var.controllers.*.name, var.controllers.*.domain))
@ -71,7 +71,7 @@ resource "matchbox_profile" "workers" {
# Fedora CoreOS workers
data "ct_config" "workers" {
count = length(var.workers)
content = templatefile("${path.module}/fcc/worker.yaml", {
content = templatefile("${path.module}/butane/worker.yaml", {
domain_name = var.workers.*.domain[count.index]
cluster_dns_service_ip = module.bootstrap.cluster_dns_service_ip
cluster_domain_suffix = var.cluster_domain_suffix

View File

@ -65,7 +65,7 @@ resource "digitalocean_tag" "controllers" {
# Fedora CoreOS controllers
data "ct_config" "controllers" {
count = var.controller_count
content = templatefile("${path.module}/fcc/controller.yaml", {
content = templatefile("${path.module}/butane/controller.yaml", {
# Cannot use cyclic dependencies on controllers or their DNS records
etcd_name = "etcd${count.index}"
etcd_domain = "${var.cluster_name}-etcd${count.index}.${var.dns_zone}"

View File

@ -60,7 +60,7 @@ resource "digitalocean_tag" "workers" {
# Fedora CoreOS worker
data "ct_config" "worker" {
content = templatefile("${path.module}/fcc/worker.yaml", {
content = templatefile("${path.module}/butane/worker.yaml", {
cluster_dns_service_ip = cidrhost(var.service_cidr, 10)
cluster_domain_suffix = var.cluster_domain_suffix
})

View File

@ -69,7 +69,7 @@ resource "google_compute_instance" "controllers" {
# Fedora CoreOS controllers
data "ct_config" "controllers" {
count = var.controller_count
content = templatefile("${path.module}/fcc/controller.yaml", {
content = templatefile("${path.module}/butane/controller.yaml", {
# Cannot use cyclic dependencies on controllers or their DNS records
etcd_name = "etcd${count.index}"
etcd_domain = "${var.cluster_name}-etcd${count.index}.${var.dns_zone}"

View File

@ -74,7 +74,7 @@ resource "google_compute_instance_template" "worker" {
# Fedora CoreOS worker
data "ct_config" "worker" {
content = templatefile("${path.module}/fcc/worker.yaml", {
content = templatefile("${path.module}/butane/worker.yaml", {
kubeconfig = indent(10, var.kubeconfig)
ssh_authorized_key = var.ssh_authorized_key
cluster_dns_service_ip = cidrhost(var.service_cidr, 10)