Adding Node4

This commit is contained in:
2026-04-29 12:07:37 -05:00
parent 5ee1687dc6
commit c613df274a
6 changed files with 33 additions and 12 deletions
+3 -3
View File
@@ -49,12 +49,12 @@ def WriteVMFile(content,hosttype,hostclass):
with open(filepath+host+'-vm.service','w') as vmfile: with open(filepath+host+'-vm.service','w') as vmfile:
vmfile.write('[Unit]\n') vmfile.write('[Unit]\n')
vmfile.write('Description=AniNIX/' + host + '\n') vmfile.write('Description=AniNIX/' + host + '\n')
vmfile.write('After=network.target\n') vmfile.write('After=network-online.target\n')
vmfile.write('\n') vmfile.write('\n')
vmfile.write('[Service]\n') vmfile.write('[Service]\n')
vmfile.write('ExecStart=/usr/sbin/qemu-system-x86_64 -name AniNIX/' + host + ' -machine type=pc,accel=kvm') vmfile.write('ExecStart=/usr/sbin/qemu-system-x86_64 -name AniNIX/' + host + ' -machine type=q35,accel=kvm')
if 'uefi' in content['all']['children'][hosttype]['children'][hostclass]['hosts'][host].keys(): vmfile.write(' -bios /usr/share/edk2-ovmf/x64/OVMF.fd') if 'uefi' in content['all']['children'][hosttype]['children'][hostclass]['hosts'][host].keys(): vmfile.write(' -bios /usr/share/edk2-ovmf/x64/OVMF.fd')
vmfile.write(' -cpu host -smp ' + cores + ' ' + disks + ' -net nic,macaddr=' + mac + ',model=virtio -net bridge,br=' + bridge + ' -vga std -nographic -vnc :' + str(vnc) + ' -m size=' + str(memory) + 'G -device virtio-rng-pci\n') vmfile.write(' -cpu host -smp ' + cores + ' ' + disks + ' -net nic,macaddr=' + mac + ',model=virtio -net bridge,br=' + bridge + ' -vga std -nographic -serial none -vnc :' + str(vnc) + ' -m size=' + str(memory) + 'G -device virtio-rng-pci\n')
vmfile.write('ExecReload=/bin/kill -HUP $MAINPID\n') vmfile.write('ExecReload=/bin/kill -HUP $MAINPID\n')
vmfile.write('KillMode=process\n') vmfile.write('KillMode=process\n')
vmfile.write('Restart=always\n') vmfile.write('Restart=always\n')
+14 -5
View File
@@ -64,7 +64,7 @@ all:
ip: 10.0.1.5 ip: 10.0.1.5
mac: fa:ec:43:87:4d:2d mac: fa:ec:43:87:4d:2d
tap: true tap: true
ups: 'aps' ups: 'apc'
active_vms: active_vms:
- Yggdrasil - Yggdrasil
Node2: Node2:
@@ -84,6 +84,15 @@ all:
tap: true tap: true
active_vms: active_vms:
- TDS-Jump - TDS-Jump
Node4:
ansible_user: depriv
ipinterface: enp1s0
ip: 10.0.1.6
mac: c8:ff:bf:0c:71:94
tap: true
ups: 'apc'
active_vms:
- Yggdrasil
Geth: Geth:
hosts: hosts:
Geth0: Geth0:
@@ -171,10 +180,10 @@ all:
vnc: 1 vnc: 1
vscan_enabled: true vscan_enabled: true
disks: disks:
- '-drive format=raw,index=0,media=disk,file=/dev/sda' - '-device virtio-scsi-pci,id=scsi0 -drive file=/dev/sda,if=none,format=raw,discard=unmap,aio=native,cache=none,id=sda -device scsi-hd,drive=sda,bus=scsi0.0'
- '-drive format=raw,index=0,media=disk,file=/dev/sdb' - '-device virtio-scsi-pci,id=scsi1 -drive file=/dev/sdb,if=none,format=raw,discard=unmap,aio=native,cache=none,id=sdb -device scsi-hd,drive=sdb,bus=scsi1.0'
- '-drive format=raw,index=0,media=disk,file=/dev/sdc' - '-device virtio-scsi-pci,id=scsi2 -drive file=/dev/sdc,if=none,format=raw,discard=unmap,aio=native,cache=none,id=sdc -device scsi-hd,drive=sdc,bus=scsi2.0'
- '-drive format=raw,index=0,media=disk,file=/dev/sdd' - '-device virtio-scsi-pci,id=scsi3 -drive file=/dev/sdd,if=none,format=raw,discard=unmap,aio=native,cache=none,id=sdd -device scsi-hd,drive=sdd,bus=scsi3.0'
Vergil: # 10.0.1.32/28 Vergil: # 10.0.1.32/28
vars: vars:
motion_enabled: yes motion_enabled: yes
+1 -1
View File
@@ -29,7 +29,7 @@
become: yes become: yes
register: dns_updated register: dns_updated
copy: copy:
dest: /etc/pihole/custom.list dest: /etc/pihole/hosts/custom.list
src: dns src: dns
owner: pihole owner: pihole
group: pihole group: pihole
+6
View File
@@ -0,0 +1,6 @@
################################################################################
# AniNIX/Node4 #
# #
# This is the network virtualization platform. VMs can be found with this: #
# cd /usr/lib/systemd/system; ls -1 *vm.service | xargs -n 1 systemctl status #
################################################################################
+7 -3
View File
@@ -57,11 +57,15 @@
- git - git
- tmux - tmux
- vim - vim
- sysstat
- iotop
- lsof
- rsync - rsync
- xfsprogs - xfsprogs
- man - man
- sysstat
- iotop
- lsof
- bind
- net-tools
- curl
- nmap
state: present state: present
update_cache: yes update_cache: yes
@@ -0,0 +1,2 @@
include "/etc/monit.d/checks/system"
include "/etc/monit.d/checks/automated_response"