Compare commits
2 Commits
v0.0.5f-em
...
v0.0.5i-aa
Author | SHA1 | Date | |
---|---|---|---|
44d52b757b | |||
8b7b1ee06f |
9
scripts/Debian11/chname
Normal file
9
scripts/Debian11/chname
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $1 == "version" ]] ; then
|
||||||
|
echo 'chname v1.0 pour debian 11'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sed -i "s/bullseye/$1/g" /etc/host{s,name}
|
||||||
|
echo 'redemarrer pour finaliser le changement du nom'
|
||||||
|
exit 0
|
1
scripts/Debian11/gsb-start
Normal file
1
scripts/Debian11/gsb-start
Normal file
@ -0,0 +1 @@
|
|||||||
|
apt update;upgrade -y;mkdir -p /root/tools/ansible;cd /root/tools/ansible;git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git;cd gsb2023/pre;export DEPL=192.168.99.99;bash gsbboot;cd ../..;bash pull-config
|
4
scripts/Debian11/s-adm-start
Normal file
4
scripts/Debian11/s-adm-start
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apt update;apt upgrade -y;
|
||||||
|
mkdir -p tools/ansible;cd tools/ansible;git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git;
|
||||||
|
cd gsb2023/pre;bash inst-depl;cd /var/www/html/gsbstore;bash getall;
|
||||||
|
cd /root/tools/ansible/gsb2023/pre;bash gsbboot; cd ..;bash pull-config;
|
@ -87,6 +87,11 @@ elseif (((((((($args[0] -eq "s-elk") `
|
|||||||
create_vm $args[0]
|
create_vm $args[0]
|
||||||
create_if $args[0] "int" 1 "n-adm"
|
create_if $args[0] "int" 1 "n-adm"
|
||||||
create_if $args[0] "int" 2 "n-infra"
|
create_if $args[0] "int" 2 "n-infra"
|
||||||
|
if ($args[0] -eq "s-elk") {
|
||||||
|
|
||||||
|
& "$vboxmanage" modifyvm "$args[0]" --memory 4096
|
||||||
|
Write-Host "$args[0] : 4096 RAM OK"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
elseif ($args[0] -eq "s-fog") {
|
elseif ($args[0] -eq "s-fog") {
|
||||||
@ -153,4 +158,4 @@ elseif ($args[0] -eq "r-vp2") {
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
usage
|
usage
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user