ci: Add kvm-libvirt configuration
ADD
ci/kvm-libvirt/kvm-libvirt-cluster.tf.envsubst
+module "controller" {
+ source = "../../kvm-libvirt/flatcar-linux/kubernetes"
+
+ providers = {
+ local = local.default
+ null = null.default
+ template = template.default
+ tls = tls.default
+ libvirt = libvirt.default
+ }
+
+ os_image_unpacked = "file:///var/tmp/flatcar_production_qemu_image.img"
+ ssh_keys = ["$PUB_KEY"]
+
+ asset_dir = pathexpand("~/assets")
+
+ machine_domain = "vmcluster.k8s"
+ cluster_name = "vmcluster"
+ node_ip_pool = "192.168.192.0/24"
+
+ controller_count = 1
+}
+
+module "worker-pool-one" {
+ source = "../../kvm-libvirt/flatcar-linux/kubernetes/workers"
+
+ providers = {
+ local = local.default
+ template = template.default
+ tls = tls.default
+ libvirt = libvirt.default
+ }
+
+ ssh_keys = module.controller.ssh_keys
+
+ machine_domain = module.controller.machine_domain
+ cluster_name = module.controller.cluster_name
+ libvirtpool = module.controller.libvirtpool
+ libvirtbaseid = module.controller.libvirtbaseid
+
+ pool_name = "one"
+
+ worker_count = 1
+
+ kubeconfig = module.controller.kubeconfig
+}

ADD
ci/kvm-libvirt/provider.tf
+provider "ct" {
+ version = "0.4.0"
+}
+
+provider "local" {
+ version = "~> 1.2"
+ alias = "default"
+}
+
+provider "null" {
+ version = "~> 2.1"
+ alias = "default"
+}
+
+provider "template" {
+ version = "~> 2.1"
+ alias = "default"
+}
+
+provider "tls" {
+ version = "~> 2.0"
+ alias = "default"
+}
+
+provider "libvirt" {
+ version = "~> 0.6.1"
+ uri = "qemu:///system"
+ alias = "default"
+}

ci: Add kvm-libvirt configuration