ansible-debops-infrastructure

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

commit 4f60b3457556200bbcd6b89f7c77a426a5cd58c9
parent a5e2d7229a05ac331c30dd99525b421f11891654
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat,  4 Apr 2020 15:03:08 +0300

oricono: Remove dirty_openbsd_dev, add nv_testing

Diffstat:
terraform/infrastructure/oricono/main.tf | 27++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/terraform/infrastructure/oricono/main.tf b/terraform/infrastructure/oricono/main.tf @@ -65,34 +65,39 @@ runcmd: EOF } -module "dirty_openbsd_dev" { +module "xorg_enabled" { source = "../../modules/libvirt_host" - host_name = "dirty_openbsd_dev" + host_name = "xorg_enabled" host_memory = "1024" - host_vcpu = 2 + host_vcpu = 1 storage_pool = var.libvirt_storage_pool - volume_name = "dirty_openbsd_dev" - base_volume_id = libvirt_volume.base_openbsd_volume.id - disks = [{"volume_id": libvirt_volume.base_openbsd_volume.id}] + volume_name = "xorg_enabled" + base_volume_id = libvirt_volume.base_debian_volume.id + disks = [{"volume_id": libvirt_volume.base_debian_volume.id}] network_id = module.ori_network.id network_cidr = module.ori_network.cidr - network_host = "4" + network_host = "5" + enable_cloud_init = true + cloudinit_user_template = <<EOF +runcmd: + - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces +EOF } -module "xorg_enabled" { +module "nv_testing" { source = "../../modules/libvirt_host" - host_name = "xorg_enabled" + host_name = "nc_testing" host_memory = "1024" host_vcpu = 1 storage_pool = var.libvirt_storage_pool - volume_name = "xorg_enabled" + volume_name = "nv_testing" base_volume_id = libvirt_volume.base_debian_volume.id disks = [{"volume_id": libvirt_volume.base_debian_volume.id}] network_id = module.ori_network.id network_cidr = module.ori_network.cidr - network_host = "5" + network_host = "6" enable_cloud_init = true cloudinit_user_template = <<EOF runcmd: