From f3e0d097746bcf734265616f8227e163ea8920c2 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 14 Mar 2023 22:30:56 +0100 Subject: [PATCH] restructure --- README.md | 4 ++++ {libvirt-bootstrap => bootstrap}/main.tf | 0 {libvirt-bootstrap => bootstrap}/variables.tf | 0 ansible.cfg => configure/ansible.cfg | 0 atlas.yml => configure/atlas.yml | 0 dmz.conf => configure/dmz.conf | 0 {inventory => configure/inventory}/host_vars/atlas.yml | 0 {inventory => configure/inventory}/hosts.yml | 0 8 files changed, 4 insertions(+) rename {libvirt-bootstrap => bootstrap}/main.tf (100%) rename {libvirt-bootstrap => bootstrap}/variables.tf (100%) rename ansible.cfg => configure/ansible.cfg (100%) rename atlas.yml => configure/atlas.yml (100%) rename dmz.conf => configure/dmz.conf (100%) rename {inventory => configure/inventory}/host_vars/atlas.yml (100%) rename {inventory => configure/inventory}/hosts.yml (100%) diff --git a/README.md b/README.md index e0a6eb3..73580b6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # Atlas Terraform and Ansible scripts to configure our KVM hypervisor Debian server. + +To initialize Terraform: +1. Create pg.tfbackend including `conn_str = "postgres://terraform@atlas.lan/terraform_state"` +2. Execute `terraform init -backend-config=./pg.tfbackend` diff --git a/libvirt-bootstrap/main.tf b/bootstrap/main.tf similarity index 100% rename from libvirt-bootstrap/main.tf rename to bootstrap/main.tf diff --git a/libvirt-bootstrap/variables.tf b/bootstrap/variables.tf similarity index 100% rename from libvirt-bootstrap/variables.tf rename to bootstrap/variables.tf diff --git a/ansible.cfg b/configure/ansible.cfg similarity index 100% rename from ansible.cfg rename to configure/ansible.cfg diff --git a/atlas.yml b/configure/atlas.yml similarity index 100% rename from atlas.yml rename to configure/atlas.yml diff --git a/dmz.conf b/configure/dmz.conf similarity index 100% rename from dmz.conf rename to configure/dmz.conf diff --git a/inventory/host_vars/atlas.yml b/configure/inventory/host_vars/atlas.yml similarity index 100% rename from inventory/host_vars/atlas.yml rename to configure/inventory/host_vars/atlas.yml diff --git a/inventory/hosts.yml b/configure/inventory/hosts.yml similarity index 100% rename from inventory/hosts.yml rename to configure/inventory/hosts.yml