ansible-debops-infrastructure

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

commit 89fbe75ee5caad57684081d6a78d07b05871a188
parent 5d94c616d7356b1df5e8be2d8a24759f16da196c
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat, 25 Jan 2020 14:24:15 +0200

production: Add hosts for Grafana and Prometheus

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

diff --git a/terraform/infrastructure/production/main.tf b/terraform/infrastructure/production/main.tf @@ -56,3 +56,41 @@ runcmd: - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces EOF } + +module "production_libreops_grafana" { + source = "../../modules/libvirt_host" + + host_name = "production_libreops_grafana" + host_memory = "512" + storage_pool = var.libvirt_storage_pool + volume_name = "production_libreops_grafana" + 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 = "4" + enable_cloud_init = true + cloudinit_user_template = <<EOF +runcmd: + - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces +EOF +} + +module "production_grafana" { + source = "../../modules/libvirt_host" + + host_name = "production_grafana" + host_memory = "1024" + storage_pool = var.libvirt_storage_pool + volume_name = "production_grafana" + 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 = "5" + enable_cloud_init = true + cloudinit_user_template = <<EOF +runcmd: + - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces +EOF +}