ansible-debops-infrastructure

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

commit ac0d80728b42afeae8878113f4a95cbd7f18b588
parent 195bae4b39aa0f6f749be148f824f395eb8c5e49
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat,  2 Nov 2019 20:53:39 +0200

terrafor: Remove dev directory

Diffstat:
terraform/infrastructure/dev/main.tf | 85-------------------------------------------------------------------------------
terraform/infrastructure/dev/variables.tf | 19-------------------
2 files changed, 0 insertions(+), 104 deletions(-)

diff --git a/terraform/infrastructure/dev/main.tf b/terraform/infrastructure/dev/main.tf @@ -1,85 +0,0 @@ -provider "libvirt" { - uri = "${var.libvirt_uri}" -} - -resource "libvirt_network" "dev_network" { - name = "dev_network" - mode = "nat" - addresses = ["${var.libvirt_cidr}"] - autostart = true - bridge = "virbr1" -} - -resource "libvirt_volume" "debian_dev" { - name = "debian_dev" - pool = "${var.libvirt_storage_pool}" - format = "qcow2" - size = 10737418240 -} - -resource "libvirt_volume" "obsd_dev" { - name = "obsd_dev" - pool = "${var.libvirt_storage_pool}" - format = "qcow2" - size = 10737418240 -} - -resource "libvirt_volume" "obsd_dn42" { - name = "obsd_dn42" - pool = "${var.libvirt_storage_pool}" - format = "qcow2" - size = 10737418240 -} - -resource "libvirt_domain" "obsd_dev_domain" { - name = "obsd_dev" - memory = "1024" - vcpu = 2 - autostart = "true" - - boot_device { - dev = ["hd"] - } - - ## Not needed after initial installation - ## disk { - ## file = "${var.openbsd_iso}" - ## } - - disk { - volume_id = "${libvirt_volume.obsd_dev.id}" - } - network_interface { - network_id = "${libvirt_network.dev_network.id}" - addresses = [cidrhost("${var.libvirt_cidr}", 2)] - } - graphics { - type = "spice" - listen_type = "none" - } -} - -resource "libvirt_domain" "debian_dev_domain" { - name = "debian_dev" - memory = "512" - vcpu = 1 - autostart = "true" - - boot_device { - dev = ["hd"] - } - - disk { - volume_id = "${libvirt_volume.debian_dev.id}" - } - - network_interface { - network_id = "${libvirt_network.dev_network.id}" - addresses = [cidrhost("${var.libvirt_cidr}", 4)] - } - - graphics { - type = "spice" - listen_type = "none" - } -} diff --git a/terraform/infrastructure/dev/variables.tf b/terraform/infrastructure/dev/variables.tf @@ -1,19 +0,0 @@ -variable "libvirt_uri" { - description = "URI for libvirt to use" - default = "qemu+ssh://user@host/system" -} - -variable "libvirt_storage_pool" { - description = "Storage pool to use for VM disks" - default = "tf_pool" -} - -variable "libvirt_cidr" { - description = "Network CIDR to use for VMs" - default = "192.168.199.0/24" -} - -variable "openbsd_iso" { - description = "OpenBSD installation ISO to use" - default = "/data/iso/install64.iso" -}