Pushing latest changes made over...who knows. Will need to start working on this project again, and get the code refactored for quality and functionality

This commit is contained in:
2024-03-03 16:36:35 -05:00
parent 2fd54cc73c
commit 29bb16e0b8
49 changed files with 1146 additions and 166 deletions

View File

@ -0,0 +1,37 @@
---
__project_maintainer : Chris Hammer
__project_maintainer_email : chris@thezengarden.net
__pve_tld : thezengarden.net
__pve_token : 'PVEAPIToken=root@pam!ansible=e2356d3b-2141-4c90-866e-5ee997e301e3'
__pve_node : zg-vm-dev
__pve_endpoint : "https://{{ __pve_node }}.{{ __pve_tld }}:8006/api2/json"
__pve_template_host: zg-vm-dev
__api_retries: 12
__api_polling: 5
__vm_start_delay: 0
#__vm_tmpl_id : 202210211 # CentOS-9-01
__vm_tmpl_id : 202210213 # CentOS-8-01
__lab_cores_default : 4
__lab_mem_default : 4
__lab_snapshot_name: baseos_lab
...

View File

@ -0,0 +1,24 @@
---
__environment_packages:
centos_9:
- nfs-utils
- python3
- tar
- zip
- git
- httpd-tools
- tree
- wget
- net-tools
debian_11:
- nfs-common
- python3
- tar
- zip
- git
- apache2-utils
- tree
...

View File

@ -0,0 +1,17 @@
---
__default_inventory_group: unassigned
lab_groups:
- "{{ __default_inventory_group }}"
lab_parents:
baseos_lab_groups:
groups:
- "{{ __default_inventory_group }}"
vars:
- "ansible_user=root"
...

View File

@ -0,0 +1,93 @@
---
# PVE vmid's will start at this number
# and increment from there...
lab_vmid_base: 6600
lab_nodes:
# nodes for playing with
########################
# - name : baseos-centos-lab-1
# vm_host : zg-vm-dev
#
# - name : baseos-centos-lab-2
# vm_host : zg-vm-dev2
#
# - name : baseos-centos-lab-3
# vm_host : zg-vm-dev3
- name : baseos-centos-lab-1
#vm_template_id : 202210211
vm_host : zg-vm-dev
cores : 4
mem : 2
- name : baseos-centos-lab-2
#vm_template_id : 202210211
vm_host : zg-vm-dev2
cores : 4
mem : 2
- name : baseos-centos-lab-3
#vm_template_id : 202210211
vm_host : zg-vm-dev3
cores : 4
mem : 2
- name : baseos-centos-lab-4
vm_template_id : 202210211
vm_host : zg-vm-dev
cores : 4
mem : 2
- name : baseos-centos-lab-5
vm_template_id : 202210211
vm_host : zg-vm-dev2
cores : 4
mem : 2
- name : baseos-centos-lab-6
vm_template_id : 202210211
vm_host : zg-vm-dev3
cores : 4
mem : 2
# - name : baseos-debian-lab-1
# vm_template_id : 202210112
# vm_host : zg-vm-dev
# cores : 8
# mem : 2
#
# - name : baseos-debian-lab-2
# vm_template_id : 202210112
# vm_host : zg-vm-dev2
# cores : 8
# mem : 2
#
# - name : baseos-debian-lab-3
# vm_template_id : 202210112
# vm_host : zg-vm-dev
# cores : 8
# mem : 2
#
# - name : baseos-debian-lab-4
# vm_template_id : 202210112
# vm_host : zg-vm-dev3
# cores : 8
# mem : 2
#
# - name : baseos-debian-lab-5
# vm_template_id : 202210112
# vm_host : zg-vm-dev2
# cores : 8
# mem : 2
#
# - name : baseos-debian-lab-6
# vm_template_id : 202210112
# vm_host : zg-vm-dev
# cores : 8
# mem : 2
...

View File

@ -0,0 +1,6 @@
---
__lab_bridge : vmbr0
__lab_vlan : 42
...

View File

@ -0,0 +1,9 @@
---
__ssh_keypair_name : id_rsa
__ssh_keypair_dest : "{{ playbook_dir }}/files"
__ssh_keypair_size : 4096
__ssh_keypair_type : rsa
__ssh_authorized_file : /root/.ssh/authorized_keys
...

View File

@ -0,0 +1,26 @@
---
lab_template_header: BaseOS Lab
lab_inv_dest : "{{ playbook_dir }}/inventory"
lab_inv_file : lab_hosts
lab_inv_tmpl : templates/ansible_inventory.j2
lab_inv_ver : 1.0
lab_inv_rev : 220802.954
etc_hosts_dest : "{{ playbook_dir }}/files/hosts"
etc_hosts_tmpl : templates/etc_hosts.j2
etc_hosts_file : /etc/hosts
etc_hosts_ver : 1.0
etc_hosts_rev : 220818.1017
prometheus_config_tmpl : templates/prometheus_yml.j2
prometheus_config_file : /etc/prometheus/prometheus.yml
prometheus_config_ver : 1.0
prometheus_config_rev : 220828.2233
...