Compare commits
10 Commits
v0.0.1c-ps
...
v0.0.1k-ps
Author | SHA1 | Date | |
---|---|---|---|
78da7eef67 | |||
ed512fc702 | |||
17266a2b57 | |||
26ebf4899b | |||
21d6a77ffa | |||
23b480e9fd | |||
9f99511968 | |||
cceccda12b | |||
36a6850a52 | |||
d14bf44b2b |
@ -42,7 +42,7 @@ Prérequis :
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
On utilisera les images de machines virtuelle suivantes :
|
On utilisera les images de machines virtuelle suivantes :
|
||||||
* **debian-bookworm-gsb-2023c.ova** (2024-12-18)
|
* **debian-bookworm-gsb-2023c.ova** (2023-12-18)
|
||||||
* Debian Bookworm 12.4 - 2 cartes - 1 Go - Stockage 20 Go
|
* Debian Bookworm 12.4 - 2 cartes - 1 Go - Stockage 20 Go
|
||||||
|
|
||||||
et pour **s-fog** :
|
et pour **s-fog** :
|
||||||
@ -81,7 +81,7 @@ bash chname <nouveau_nom_de_machine>` , puis redémarrer
|
|||||||
bash inst-depl
|
bash inst-depl
|
||||||
cd /var/www/html/gsbstore
|
cd /var/www/html/gsbstore
|
||||||
bash getall
|
bash getall
|
||||||
cd /root/tools/ansible/gsb023/pre
|
cd /root/tools/ansible/gsb024/pre
|
||||||
bash gsbboot
|
bash gsbboot
|
||||||
cd .. ; bash pull-config
|
cd .. ; bash pull-config
|
||||||
```
|
```
|
||||||
@ -96,7 +96,7 @@ bash chname <nouveau_nom_de_machine>` , puis redémarrer
|
|||||||
- ou sinon:
|
- ou sinon:
|
||||||
```shell
|
```shell
|
||||||
mkdir -p tools/ansible ; cd tools/ansible
|
mkdir -p tools/ansible ; cd tools/ansible
|
||||||
git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
git clone https://gitea.lyc-lecastel.fr/gsb/gsb2024.git
|
||||||
cd gsb2024/pre
|
cd gsb2024/pre
|
||||||
export DEPL=192.168.99.99
|
export DEPL=192.168.99.99
|
||||||
bash gsbboot
|
bash gsbboot
|
||||||
|
@ -11,50 +11,36 @@ apt-get update
|
|||||||
apt-get install -y apache2 git
|
apt-get install -y apache2 git
|
||||||
STOREREP="/var/www/html/gsbstore"
|
STOREREP="/var/www/html/gsbstore"
|
||||||
|
|
||||||
GLPIREL=10.0.6
|
GLPIREL=10.0.11
|
||||||
str="wget -nc https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz"
|
str="wget -nc https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz"
|
||||||
|
|
||||||
|
|
||||||
#Fusion Inventory
|
|
||||||
|
|
||||||
#FIREL=10.0.3+1.0
|
|
||||||
#str2="https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FIREL}/fusioninventory-${FIREL}.tar.bz2"
|
|
||||||
|
|
||||||
|
|
||||||
#GLPI Agent
|
#GLPI Agent
|
||||||
|
|
||||||
GLPIAGVER=1.4
|
GLPIAGVER=1.7
|
||||||
str31="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x64.msi"
|
str31="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x64.msi"
|
||||||
|
|
||||||
str32="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x86.msi"
|
#str32="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x86.msi"
|
||||||
|
|
||||||
|
FOGREL=1.5.10
|
||||||
FOGREL=1.5.9
|
|
||||||
str4="wget -nc https://github.com/FOGProject/fogproject/archive/${FOGREL}.tar.gz -O fogproject-${FOGREL}.tar.gz"
|
str4="wget -nc https://github.com/FOGProject/fogproject/archive/${FOGREL}.tar.gz -O fogproject-${FOGREL}.tar.gz"
|
||||||
|
|
||||||
WPREL=6.1.1
|
WPREL=6.4.2
|
||||||
#v6.1.1 le 17/01/2023
|
#v6.1.1 le 17/01/2023
|
||||||
str5="wget -nc https://fr.wordpress.org/latest-fr_FR.tar.gz -O wordpress-6.1.1-fr_FR.tar.gz"
|
str5="wget -nc https://fr.wordpress.org/latest-fr_FR.tar.gz -O wordpress-6.4.2-fr_FR.tar.gz"
|
||||||
|
|
||||||
GOSSVER=v0.3.21
|
str6="curl -L https://github.com/goss-org/goss/releases/latest/download/goss-linux-amd64 -o goss"
|
||||||
str6="curl -L https://github.com/aelsabbahy/goss/releases/download/${GOSSVER}/goss-linux-amd64 -o goss"
|
|
||||||
|
|
||||||
#DOCKERREL=1.29.2
|
str7="curl -L https://github.com/goss-org/goss/releases/latest/download/dgoss -o dgoss"
|
||||||
#str7="curl -L https://github.com/docker/compose/releases/download/${DOCKERREL}/docker-compose-$(uname -s)-$(uname -m) -o docker-compose"
|
|
||||||
|
|
||||||
#GESTSUPREL=3.2.30
|
#GESTSUPREL=3.2.30
|
||||||
#str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
#str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=${GESTSUPREL}&type=gestsup' -O gestsup_${GESTSUPREL}.zip"
|
||||||
str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=3.2.30&type=gestsup' -O gestsup_3.2.30.zip"
|
str8="wget -nc 'https://gestsup.fr/index.php?page=download&channel=stable&version=3.2.30&type=gestsup' -O gestsup_3.2.30.zip"
|
||||||
|
|
||||||
|
|
||||||
#METRICBEAT ET FILEBEAT
|
#METRICBEAT ET FILEBEAT
|
||||||
ELKREL=8.5.3
|
ELKREL=8.11.3
|
||||||
str81="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-amd64.deb"
|
str81="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-amd64.deb"
|
||||||
|
|
||||||
str82="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-windows-x86_64.zip"
|
str82="wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ELKREL}-windows-x86_64.zip"
|
||||||
|
|
||||||
str83="wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-${ELKREL}-windows-x86_64.zip"
|
str83="wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-${ELKREL}-windows-x86_64.zip"
|
||||||
|
|
||||||
str84="wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-${ELKREL}-amd64.deb"
|
str84="wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-${ELKREL}-amd64.deb"
|
||||||
|
|
||||||
|
|
||||||
@ -64,32 +50,18 @@ str84="wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-$
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
${str}
|
${str}
|
||||||
|
|
||||||
${str2}
|
|
||||||
|
|
||||||
${str31}
|
${str31}
|
||||||
|
|
||||||
${str32}
|
|
||||||
|
|
||||||
${str4}
|
${str4}
|
||||||
|
|
||||||
${str5}
|
${str5}
|
||||||
|
|
||||||
${str6}
|
${str6}
|
||||||
|
${str7}
|
||||||
|
|
||||||
chmod +x ./goss
|
chmod +x ./goss ./dgoss
|
||||||
|
|
||||||
curl -L https://get.docker.com -o getdocker.sh
|
curl -L https://get.docker.com -o getdocker.sh
|
||||||
|
|
||||||
chmod +x ./getdocker.sh
|
chmod +x ./getdocker.sh
|
||||||
|
|
||||||
#${str7}
|
|
||||||
|
|
||||||
#chmod +x ./docker-compose
|
|
||||||
|
|
||||||
|
|
||||||
wget -nc https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 -O mkcert
|
wget -nc https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64 -O mkcert
|
||||||
|
|
||||||
chmod +x ./mkcert
|
chmod +x ./mkcert
|
||||||
|
|
||||||
${str8}
|
${str8}
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
- r-ext
|
- r-ext
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- goss
|
- goss
|
||||||
- r-int
|
- r-int
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- dhcp
|
- dhcp
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
@ -15,5 +15,5 @@
|
|||||||
- post
|
- post
|
||||||
- wireguard-r
|
- wireguard-r
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
|
|
||||||
|
@ -18,4 +18,4 @@
|
|||||||
- wireguard-l
|
- wireguard-l
|
||||||
- post
|
- post
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
#
|
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
|
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
|
||||||
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
|
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
|
|
||||||
deb http://security.debian.org/ wheezy/updates main
|
|
||||||
|
|
||||||
deb http://ftp.fr.debian.org/debian/ wheezy-updates main
|
|
||||||
|
|
||||||
deb http://http.debian.net/debian wheezy-backports main
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
deb http://deb.debian.org/debian/ bullseye main non-free contrib
|
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
|
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
|
||||||
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
|
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
|
|
||||||
|
4
roles/base/files/sources.list.bookworm
Normal file
4
roles/base/files/sources.list.bookworm
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
|
||||||
|
deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
|
||||||
|
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
|
||||||
|
|
4
roles/base/files/sources.list.bullseye
Normal file
4
roles/base/files/sources.list.bullseye
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
deb http://deb.debian.org/debian/ bullseye main non-free contrib
|
||||||
|
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
|
||||||
|
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
|
||||||
|
|
@ -9,6 +9,6 @@
|
|||||||
- squid
|
- squid
|
||||||
# - local-store
|
# - local-store
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- syslog-cli
|
## - syslog-cli
|
||||||
- post
|
- post
|
||||||
# - goss
|
# - goss
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
- goss
|
- goss
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- goss
|
- goss
|
||||||
- appli
|
- appli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- ssl-apache
|
- ssl-apache
|
||||||
- post
|
- post
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# - proxy3
|
# - proxy3
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
# - ssh-cli
|
# - ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- smb-backup
|
- smb-backup
|
||||||
- dns-slave
|
- dns-slave
|
||||||
- post
|
- post
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- goss
|
- goss
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- docker-openvas-ab
|
- docker-openvas-ab
|
||||||
#- docker-iredmail-ab
|
#- docker-iredmail-ab
|
||||||
- post
|
- post
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
- docker
|
- docker
|
||||||
- elk
|
- elk
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
- dhcp-fog
|
- dhcp-fog
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- fog
|
- fog
|
||||||
- post
|
- post
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
- gestsup
|
- gestsup
|
||||||
- postfix-gestsup
|
- postfix-gestsup
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
- dns-master
|
- dns-master
|
||||||
- webautoconf
|
- webautoconf
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
@ -16,5 +16,5 @@
|
|||||||
- snmp-agent
|
- snmp-agent
|
||||||
- glpi
|
- glpi
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
- base
|
- base
|
||||||
- docker-nextcloud
|
- docker-nextcloud
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
@ -12,5 +12,5 @@
|
|||||||
- snmp-agent
|
- snmp-agent
|
||||||
- lb-nfs-server
|
- lb-nfs-server
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
- docker
|
- docker
|
||||||
- nxc-traefik
|
- nxc-traefik
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
- post
|
||||||
|
@ -8,5 +8,5 @@
|
|||||||
- squid
|
- squid
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- syslog-cli
|
# - syslog-cli
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ apt-get update
|
|||||||
#upgrade -y
|
#upgrade -y
|
||||||
mkdir -p /root/tools/ansible
|
mkdir -p /root/tools/ansible
|
||||||
cd /root/tools/ansible
|
cd /root/tools/ansible
|
||||||
git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
git clone https://gitea.lyc-lecastel.fr/gsb/gsb2024.git
|
||||||
cd gsb2023/pre
|
cd gsb2024/pre
|
||||||
export DEPL=192.168.99.99
|
export DEPL=192.168.99.99
|
||||||
bash gsbboot
|
bash gsbboot
|
||||||
cd ../..
|
cd ../..
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkvmrelease="v1.2.2"
|
mkvmrelease="v1.2.3"
|
||||||
|
|
||||||
ovarelease="2023b"
|
ovarelease="2023c"
|
||||||
ovafogrelease="2023b"
|
ovafogrelease="2023b"
|
||||||
ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova"
|
#ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova"
|
||||||
|
ovafile="$HOME/Téléchargements/debian-bookworm-gsb-${ovarelease}.ova"
|
||||||
ovafilefog="$HOME/Téléchargements/debian-buster-gsb-${ovafogrelease}.ova"
|
ovafilefog="$HOME/Téléchargements/debian-buster-gsb-${ovafogrelease}.ova"
|
||||||
deletemode=0
|
deletemode=0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user