|
|
|
@ -97,29 +97,31 @@ module "worker-nodes" {
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# module "master-nodes" {
|
|
|
|
# module "master-nodes" {
|
|
|
|
# source = "./modules/libvirt-nodes"
|
|
|
|
# source = "./modules/libvirt-nodes"
|
|
|
|
# pool-name = libvirt_pool.images.name
|
|
|
|
# pool-name = libvirt_pool.images.name
|
|
|
|
# name-prefix = "${var.vm-name-prefix}-master"
|
|
|
|
# name-prefix = "${var.vm-name-prefix}-master"
|
|
|
|
# num-nodes = var.master-nodes
|
|
|
|
# num-nodes = var.master-nodes
|
|
|
|
# node-memory = var.node-memory
|
|
|
|
# node-memory = var.node-memory
|
|
|
|
# node-vcpus = var.node-vcpus
|
|
|
|
# node-vcpus = var.node-vcpus
|
|
|
|
# base-image = var.base-image
|
|
|
|
# base-image = var.base-image
|
|
|
|
# root-admin-passwd = var.root-admin-passwd
|
|
|
|
# root-admin-passwd = var.root-admin-passwd
|
|
|
|
# root-admin-pub-key = var.root-admin-pub-key
|
|
|
|
# root-admin-pub-key = var.root-admin-pub-key
|
|
|
|
# libvirt-connection-url = var.libvirt-connection-url
|
|
|
|
# libvirt-connection-url = var.libvirt-connection-url
|
|
|
|
|
|
|
|
# user-datas = data.template_file.master-node-user-datas
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# module "worker-nodes" {
|
|
|
|
# module "worker-nodes" {
|
|
|
|
# source = "./modules/libvirt-nodes"
|
|
|
|
# source = "./modules/libvirt-nodes"
|
|
|
|
# pool-name = libvirt_pool.images.name
|
|
|
|
# pool-name = libvirt_pool.images.name
|
|
|
|
# name-prefix = "${var.vm-name-prefix}-worker"
|
|
|
|
# name-prefix = "${var.vm-name-prefix}-worker"
|
|
|
|
# num-nodes = var.worker-nodes
|
|
|
|
# num-nodes = var.worker-nodes
|
|
|
|
# node-memory = var.node-memory
|
|
|
|
# node-memory = var.node-memory
|
|
|
|
# node-vcpus = var.node-vcpus
|
|
|
|
# node-vcpus = var.node-vcpus
|
|
|
|
# base-image = var.base-image
|
|
|
|
# base-image = var.base-image
|
|
|
|
# root-admin-passwd = var.root-admin-passwd
|
|
|
|
# root-admin-passwd = var.root-admin-passwd
|
|
|
|
# root-admin-pub-key = var.root-admin-pub-key
|
|
|
|
# root-admin-pub-key = var.root-admin-pub-key
|
|
|
|
# libvirt-connection-url = var.libvirt-connection-url
|
|
|
|
# libvirt-connection-url = var.libvirt-connection-url
|
|
|
|
|
|
|
|
# user-datas = data.template_file.worker-node-user-datas
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# resource "libvirt_pool" "images" {
|
|
|
|
# resource "libvirt_pool" "images" {
|
|
|
|
|