Premier commit
This commit is contained in:
31
scripts/Windows/addint-r-ext.bat
Normal file
31
scripts/Windows/addint-r-ext.bat
Normal file
@@ -0,0 +1,31 @@
|
||||
cd C:\Program Files\Oracle\VirtualBox
|
||||
|
||||
VBoxManage modifyvm r-ext --nic1 intnet
|
||||
VBoxManage modifyvm r-ext --intnet1 "n-adm"
|
||||
VBoxManage modifyvm r-ext --nictype1 82540EM
|
||||
VBoxManage modifyvm r-ext --cableconnected1 on
|
||||
VBoxManage modifyvm r-ext --nicpromisc1 allow-all
|
||||
|
||||
VBoxManage modifyvm r-ext --nic2 intnet
|
||||
VBoxManage modifyvm r-ext --intnet2 "n-dmz"
|
||||
VBoxManage modifyvm r-ext --nictype2 82540EM
|
||||
VBoxManage modifyvm r-ext --cableconnected2 on
|
||||
VBoxManage modifyvm r-ext --nicpromisc2 allow-all
|
||||
|
||||
VBoxManage modifyvm r-ext --nic3 bridged
|
||||
VBoxManage modifyvm r-ext --bridgeadapter3 "enp0s3"
|
||||
VBoxManage modifyvm r-ext --nictype3 82540EM
|
||||
VBoxManage modifyvm r-ext --cableconnected3 on
|
||||
VBoxManage modifyvm r-ext --nicpromisc3 allow-all
|
||||
|
||||
VBoxManage modifyvm r-ext --nic4 intnet
|
||||
VBoxManage modifyvm r-ext --intnet4 "n-linkv"
|
||||
VBoxManage modifyvm r-ext --nictype4 82540EM
|
||||
VBoxManage modifyvm r-ext --cableconnected4 on
|
||||
VBoxManage modifyvm r-ext --nicpromisc4 allow-all
|
||||
|
||||
VBoxManage modifyvm r-ext --nic5 intnet
|
||||
VBoxManage modifyvm r-ext --intnet5 "n-link"
|
||||
VBoxManage modifyvm r-ext --nictype5 82540EM
|
||||
VBoxManage modifyvm r-ext --cableconnected5 on
|
||||
VBoxManage modifyvm r-ext --nicpromisc5 allow-all
|
33
scripts/Windows/addint-r-int.bat
Normal file
33
scripts/Windows/addint-r-int.bat
Normal file
@@ -0,0 +1,33 @@
|
||||
cd C:\Program Files\Oracle\VirtualBox
|
||||
|
||||
VBoxManage modifyvm r-int --nic1 intnet
|
||||
VBoxManage modifyvm r-int --intnet1 "n-adm"
|
||||
VBoxManage modifyvm r-int --nictype1 82540EM
|
||||
VBoxManage modifyvm r-int --cableconnected1 on
|
||||
VBoxManage modifyvm r-int --nicpromisc1 allow-all
|
||||
|
||||
VBoxManage modifyvm r-int --nic2 intnet
|
||||
VBoxManage modifyvm r-int --intnet2 "n-link"
|
||||
VBoxManage modifyvm r-int --nictype2 82540EM
|
||||
VBoxManage modifyvm r-int --cableconnected2 on
|
||||
VBoxManage modifyvm r-int --nicpromisc2 allow-all
|
||||
|
||||
VBoxManage modifyvm r-int --nic3 intnet
|
||||
VBoxManage modifyvm r-int --intnet3 "n-wifi"
|
||||
VBoxManage modifyvm r-int --nictype3 82540EM
|
||||
VBoxManage modifyvm r-int --cableconnected3 on
|
||||
VBoxManage modifyvm r-int --nicpromisc3 allow-all
|
||||
|
||||
VBoxManage modifyvm r-int --nic4 intnet
|
||||
VBoxManage modifyvm r-int --intnet4 "n-user"
|
||||
VBoxManage modifyvm r-int --nictype4 82540EM
|
||||
VBoxManage modifyvm r-int --cableconnected4 on
|
||||
VBoxManage modifyvm r-int --nicpromisc4 allow-all
|
||||
|
||||
VBoxManage modifyvm r-int --nic5 intnet
|
||||
VBoxManage modifyvm r-int --intnet5 "n-infra"
|
||||
VBoxManage modifyvm r-int --nictype5 82540EM
|
||||
VBoxManage modifyvm r-int --cableconnected5 on
|
||||
VBoxManage modifyvm r-int --nicpromisc5 allow-all
|
||||
|
||||
|
42
scripts/addint.r-ext
Executable file
42
scripts/addint.r-ext
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
nom=r-ext
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 bridged
|
||||
VBoxManage modifyvm $nom --bridgeadapter3 "eno1"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
||||
|
||||
# N-linkv (enp0s10)
|
||||
|
||||
VBoxManage modifyvm $nom --nic4 intnet
|
||||
VBoxManage modifyvm $nom --intnet4 "n-linkv"
|
||||
VBoxManage modifyvm $nom --nictype4 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected4 on
|
||||
VBoxManage modifyvm $nom --nicpromisc4 allow-all
|
||||
|
||||
# N-link (enp0s16)
|
||||
|
||||
VBoxManage modifyvm $nom --nic5 intnet
|
||||
VBoxManage modifyvm $nom --intnet5 "n-link"
|
||||
VBoxManage modifyvm $nom --nictype5 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected5 on
|
||||
VBoxManage modifyvm $nom --nicpromisc5 allow-all
|
41
scripts/addint.r-int
Executable file
41
scripts/addint.r-int
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
nom=r-int
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
# N-link (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-link"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# N-wifi (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 intnet
|
||||
VBoxManage modifyvm $nom --intnet3 "n-wifi"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
||||
|
||||
# N-user (enp0s10)
|
||||
|
||||
VBoxManage modifyvm $nom --nic4 intnet
|
||||
VBoxManage modifyvm $nom --intnet4 "n-user"
|
||||
VBoxManage modifyvm $nom --nictype4 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected4 on
|
||||
VBoxManage modifyvm $nom --nicpromisc4 allow-all
|
||||
|
||||
# N-infra (enp0s16)
|
||||
|
||||
VBoxManage modifyvm $nom --nic5 intnet
|
||||
VBoxManage modifyvm $nom --intnet5 "n-infra"
|
||||
VBoxManage modifyvm $nom --nictype5 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected5 on
|
||||
VBoxManage modifyvm $nom --nicpromisc5 allow-all
|
26
scripts/addint.r-vp1
Executable file
26
scripts/addint.r-vp1
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=r-vp1
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-linkv (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-linkv"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 bridged
|
||||
VBoxManage modifyvm $nom --bridgeadapter3 "enp11s0f0"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
26
scripts/addint.r-vp2
Executable file
26
scripts/addint.r-vp2
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=r-vp2
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-linkv (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-agence"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 bridged
|
||||
VBoxManage modifyvm $nom --bridgeadapter3 "enp11s0f0"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
16
scripts/addint.s-adm
Executable file
16
scripts/addint.s-adm
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
nom=s-adm
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 bridged
|
||||
VBoxManage modifyvm $nom --bridgeadapter1 "eno1"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
#(enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
18
scripts/addint.s-infra
Executable file
18
scripts/addint.s-infra
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
nom=s-infra
|
||||
|
||||
#(enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
#(enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-infra"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
26
scripts/addint.s-lb
Executable file
26
scripts/addint.s-lb
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=s-lb
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# N-dmz-lb (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 intnet
|
||||
VBoxManage modifyvm $nom --intnet3 "n-dmz-lb"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
18
scripts/addint.s-lb-bd
Executable file
18
scripts/addint.s-lb-bd
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
nom=s-lb-bd
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz-db (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz-db"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
26
scripts/addint.s-lb-web1
Executable file
26
scripts/addint.s-lb-web1
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=s-lb-web1
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz-lb (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz-lb"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# N-dmz-db (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 intnet
|
||||
VBoxManage modifyvm $nom --intnet3 "n-dmz-db"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
26
scripts/addint.s-lb-web2
Executable file
26
scripts/addint.s-lb-web2
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=s-lb-web2
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz-lb (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz-lb"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# N-dmz-db (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 intnet
|
||||
VBoxManage modifyvm $nom --intnet3 "n-dmz-db"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
26
scripts/addint.s-lb-web3
Executable file
26
scripts/addint.s-lb-web3
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
nom=s-lb-web3
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz-lb (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz-lb"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
||||
|
||||
# N-dmz-db (enp0s9)
|
||||
|
||||
VBoxManage modifyvm $nom --nic3 intnet
|
||||
VBoxManage modifyvm $nom --intnet3 "n-dmz-db"
|
||||
VBoxManage modifyvm $nom --nictype3 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected3 on
|
||||
VBoxManage modifyvm $nom --nicpromisc3 allow-all
|
18
scripts/addint.s-mon-kb
Executable file
18
scripts/addint.s-mon-kb
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
nom=s-mon-kb
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-infra (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-infra"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
18
scripts/addint.s-nas
Executable file
18
scripts/addint.s-nas
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
nom=s-nas
|
||||
|
||||
# N-adm (enp0s3)
|
||||
|
||||
VBoxManage modifyvm $nom --nic1 intnet
|
||||
VBoxManage modifyvm $nom --intnet1 "n-adm"
|
||||
VBoxManage modifyvm $nom --nictype1 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected1 on
|
||||
VBoxManage modifyvm $nom --nicpromisc1 allow-all
|
||||
|
||||
# N-dmz-db (enp0s8)
|
||||
|
||||
VBoxManage modifyvm $nom --nic2 intnet
|
||||
VBoxManage modifyvm $nom --intnet2 "n-dmz-db"
|
||||
VBoxManage modifyvm $nom --nictype2 82540EM
|
||||
VBoxManage modifyvm $nom --cableconnected2 on
|
||||
VBoxManage modifyvm $nom --nicpromisc2 allow-all
|
16
scripts/getall-2019
Normal file
16
scripts/getall-2019
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
GLPIREL=9.3.3
|
||||
wget -nc https://github.com/glpi-project/glpi/releases/download/$GLPIREL/glpi-$GLPIREL.tgz
|
||||
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.3%2B1.2/fusioninventory-9.3+1.2.tar.gz
|
||||
|
||||
FIAGREL=2.4.2
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/$FIAGREL/fusioninventory-agent_windows-x64_$FIAGREL.exe
|
||||
|
||||
wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/$FIAGREL/fusioninventory-agent_windows-x86_$FIAGREL.exe
|
||||
|
||||
FOGREL=1.5.5
|
||||
wget -nc https://github.com/FOGProject/fogproject/archive/$FOGREL.tar.gz -O fogproject-$FOGREL.tar.gz
|
||||
|
||||
#wget -nc https://fr.wordpress.org/wordpress-4.9.1-fr_FR.tar.gz
|
||||
wget -nc https://fr.wordpress.org/wordpress-5.0.3-fr_FR.tar.gz
|
6
scripts/lb-http.bash
Normal file
6
scripts/lb-http.bash
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
while [ 1 ]
|
||||
do
|
||||
curl --max-time 1 192.168.100.10/wordpress/
|
||||
done
|
96
scripts/mkvm
Executable file
96
scripts/mkvm
Executable file
@@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
|
||||
ovarelease="2022b"
|
||||
ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova"
|
||||
|
||||
|
||||
usage () {
|
||||
echo "$0 : creation VM et parametrage interfaces"
|
||||
echo "usage : $0 <s-infra|r-int|r-ext|s-proxy|s-mon>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
create_vm () {
|
||||
nom=$1
|
||||
if [[ ! -r "${ovafile}" ]]; then
|
||||
echo "$0 : erreur ouverture fichier ${ovafile} ..."
|
||||
exit 3
|
||||
fi
|
||||
vboxmanage import "${ovafile}" --vsys 0 --vmname "${nom}"
|
||||
}
|
||||
|
||||
setif () {
|
||||
|
||||
VBoxManage modifyvm $1 --nic${2} intnet
|
||||
VBoxManage modifyvm $1 --intnet${2} $3
|
||||
VBoxManage modifyvm $1 --nictype${2} 82540EM
|
||||
VBoxManage modifyvm $1 --cableconnected${2} on
|
||||
VBoxManage modifyvm $1 --nicpromisc${2} allow-all
|
||||
}
|
||||
|
||||
create_if () {
|
||||
# enp0s3
|
||||
setif $1 1 $2
|
||||
setif $1 2 $3
|
||||
#(enp0s8)
|
||||
}
|
||||
|
||||
|
||||
vm=$1
|
||||
|
||||
create_vm "${vm}"
|
||||
if [[ "${vm}" == "s-infra" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-proxy" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "r-int" ]] ; then
|
||||
# n-adm, n-link, n-wifi, n-user, n-infra
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
setif "${vm}" 2 "n-link"
|
||||
setif "${vm}" 3 "n-wifi"
|
||||
setif "${vm}" 4 "n-user"
|
||||
setif "${vm}" 5 "n-infra"
|
||||
elif [[ "${vm}" == "r-ext" ]] ; then
|
||||
./addint.r-ext
|
||||
elif [[ "${vm}" == "s-mon" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-appli" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-backup" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-itil" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-nxc" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
elif [[ "${vm}" == "s-fog" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-infra"
|
||||
setif "${vm}" 3 "n-user"
|
||||
elif [[ "${vm}" == "s-DNS-ext" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz"
|
||||
elif [[ "${vm}" == "s-web-ext" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz"
|
||||
elif [[ "${vm}" == "s-lb" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz" "n-dmz-lb"
|
||||
elif [[ "${vm}" == "s-web1" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz-lb" "n-dmz-db"
|
||||
# setif "${vm}" 3 "n-dmz-lb"
|
||||
elif [[ "${vm}" == "s-web2" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz-lb" "n-dmz-db"
|
||||
elif [[ "${vm}" == "s-web3" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz-lb" "n-dmz-db"
|
||||
# setif "${vm}" 3 "n-dmz-lb"
|
||||
elif [[ "${vm}" == "s-lb-bd" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz-db"
|
||||
elif [[ "${vm}" == "s-nas" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-dmz-db"
|
||||
elif [[ "${vm}" == "r-vp1" ]] ; then
|
||||
./addint.r-vp1
|
||||
elif [[ "${vm}" == "r-vp2" ]] ; then
|
||||
./addint.r-vp2
|
||||
elif [[ "${vm}" == "s-agence" ]] ; then
|
||||
create_if "${vm}" "n-adm" "n-agence"
|
||||
|
||||
else
|
||||
echo "$0 : vm ${vm} non prevu"
|
||||
exit 2
|
||||
fi
|
4
scripts/recup-s-lb.bash
Normal file
4
scripts/recup-s-lb.bash
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
while [ 1 ]; do
|
||||
wget index.html http://192.168.100.10
|
||||
done
|
Reference in New Issue
Block a user