ansible-debops-infrastructure

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

commit 7809c00ad70909d7de3ae0192f74545f4160691a
parent 2cdb150c73b201d9dc82fd3fc9ce38da4cb41d18
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Thu, 16 Apr 2020 01:05:33 +0300

oricono: Add a VM host for Rust development

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

diff --git a/terraform/infrastructure/oricono/main.tf b/terraform/infrastructure/oricono/main.tf @@ -104,3 +104,23 @@ runcmd: - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces EOF } + +module "rust_dev" { + source = "../../modules/libvirt_host" + + host_name = "rust_dev" + host_memory = "1024" + host_vcpu = 2 + storage_pool = var.libvirt_storage_pool + volume_name = "rust_dev" + 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 = "7" + enable_cloud_init = true + cloudinit_user_template = <<EOF +runcmd: + - echo 'source /etc/network/interfaces.d/*' > /etc/network/interfaces +EOF +}