ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 5d94c616d7356b1df5e8be2d8a24759f16da196c
parent 258ed4bc4c5c493ac724f1320325fd45fb152c8f
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat, 25 Jan 2020 14:23:10 +0200

production: Add new PG host for the Synapse DB

Diffstat:
terraform/infrastructure/production/main.tf | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/terraform/infrastructure/production/main.tf b/terraform/infrastructure/production/main.tf @@ -37,3 +37,22 @@ runcmd: - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces EOF } + +module "production_pg_matrix" { + source = "../../modules/libvirt_host" + + host_name = "production_pg_matrix" + host_memory = "1024" + storage_pool = var.libvirt_storage_pool + volume_name = "production_pg_matrix_volume" + base_volume_id = libvirt_volume.base_debian_volume.id + disks = [{"volume_id": libvirt_volume.base_debian_volume.id}] + network_id = module.dev_network.id + network_cidr = module.dev_network.cidr + network_host = "3" + enable_cloud_init = true + cloudinit_user_template = <<EOF +runcmd: + - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces +EOF +}