Delete Ansible support

This commit is contained in:
2025-11-28 12:19:47 +07:00
parent 020edd51be
commit a98125ce97
9 changed files with 53 additions and 18 deletions

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
*~* # - Ignore temp vim files
*~* # - Ignore temp vim files
*~
~*

View File

View File

View File

@@ -1,9 +1,11 @@
#!/usr/bin/bash
prefix="hosting_"
postfix="_vm"
hostlist=""
for var in $(cat ../../memlist)
cat /dev/null > ../../hostlist
for var in $(grep hosting ../../memlist)
do
echo $var:$(virsh domifaddr $prefix$var$postfix --full --source arp | awk '/192.168.0./ {print $4}' | cut -d "/" -f 1)
echo $var:$(virsh domifaddr $var --full --source arp | awk '/192.168.0./ {print $4}' | cut -d "/" -f 1) >> ../../hostlist
done

8
bash/virt-virsh/vmcloning-init Normal file → Executable file
View File

@@ -1,10 +1,6 @@
#!/usr/bin/bash
prefix="hosting_"
postfix="_vm"
for var in $(cat ../../memlist)
for var in $(grep hosting ../../memlist)
do
name=$prefix$var$postfix
virt-clone --original generic_hosting --name $name --auto-clone
virt-clone --original generic_hosting --name $var --auto-clone
done

8
bash/virt-virsh/vmundefine Normal file → Executable file
View File

@@ -1,10 +1,6 @@
#!/usr/bin/bash
prefix="hosting_"
postfix="_vm"
for var in $(cat ../../memlist)
for var in $(grep hosting ../../memlist)
do
name=$prefix$var$postfix
virsh undefine $name
virsh undefine $var
done

21
hostlist Normal file
View File

@@ -0,0 +1,21 @@
hosting_antonkaretnikov:
hosting_alexanderboliubysh:
hosting_dorjisandakov:
hosting_sergeymoskalenko:
hosting_katerinenikitina:
hosting_kirillsavchenko:
hosting_nikitamochalov:
hosting_danilreutov:
hosting_anastasiatsygankova:
hosting_egorkaikov:
hosting_stepanyankov:
hosting_daniilivlev:
hosting_mariaborzykh:
hosting_irinakatalanina:
hosting_mariagerasimenko:
hosting_evgeniatroshinovskaya:
hosting_marinerusskikh:
hosting_vsevolodignatenko:
hosting_konstantinbekbauov:
hosting_egorparkhomenko:
hosting_danilmatveyev:

22
memlist
View File

@@ -1 +1,21 @@
antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko danilmatveyev
hosting_antonkaretnikov
hosting_alexanderboliubysh
hosting_dorjisandakov
hosting_sergeymoskalenko
hosting_katerinenikitina
hosting_kirillsavchenko
hosting_nikitamochalov
hosting_danilreutov
hosting_anastasiatsygankova
hosting_egorkaikov
hosting_stepanyankov
hosting_daniilivlev
hosting_mariaborzykh
hosting_irinakatalanina
hosting_mariagerasimenko
hosting_evgeniatroshinovskaya
hosting_marinerusskikh
hosting_vsevolodignatenko
hosting_konstantinbekbauov
hosting_egorparkhomenko
hosting_danilmatveyev