Compare commits
5 Commits
v0.0.1a-ps
...
v0.0.1d-em
Author | SHA1 | Date | |
---|---|---|---|
17b049942f | |||
acb5492b45 | |||
d0314e508a | |||
9c2660ece3 | |||
c0d2115acd |
11
README.md
11
README.md
@ -1,9 +1,14 @@
|
||||
# gsb2023
|
||||
|
||||
2023-01-06
|
||||
|
||||
Environnement et playbooks ansible pour le projet GSB 2023
|
||||
|
||||
## Quickstart
|
||||
prérequis : une machine Debian Bullseye
|
||||
prérequis :
|
||||
* une machine Debian Bullseye
|
||||
* VirtualBox
|
||||
|
||||
|
||||
|
||||
## Les machines
|
||||
@ -20,7 +25,7 @@ prérequis : une machine Debian Bullseye
|
||||
## Installation
|
||||
|
||||
On utilisera l'image de machine virtuelle suivante :
|
||||
* **debian-bullseye-2023a.ova** (2022-05-07)
|
||||
* **debian-bullseye-2023a.ova** (2023-01-06)
|
||||
* Debian Bullseye 11 - 2 cartes - 1 Go - stockage 20 Go
|
||||
|
||||
|
||||
@ -35,7 +40,7 @@ On utilisera l'image de machine virtuelle suivante :
|
||||
bash inst-depl
|
||||
cd /var/www/html/gsbstore
|
||||
bash getall
|
||||
cd /root/tools/ansible/gsb022/pre
|
||||
cd /root/tools/ansible/gsb023/pre
|
||||
bash gsbboot
|
||||
cd .. ; bash pull-config
|
||||
```
|
||||
|
@ -24,7 +24,7 @@ if [[ -z ${DEPL+x} ]]; then
|
||||
fi
|
||||
|
||||
hostf="${host}.local"
|
||||
prj=gsb2022
|
||||
prj=gsb2023
|
||||
APT=apt
|
||||
|
||||
which git >> /dev/null
|
||||
|
@ -4,7 +4,7 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
GITUSR=gitgsb
|
||||
GITPRJ=gsb2022
|
||||
GITPRJ=gsb2023
|
||||
apt update && apt upgrade
|
||||
apt install -y apache2 git
|
||||
STOREREP="/var/www/html/gsbstore"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z ${UREP+x} ]; then
|
||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2022.git
|
||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
||||
fi
|
||||
|
||||
dir=/root/tools/ansible
|
||||
@ -11,6 +11,6 @@ dir=/root/tools/ansible
|
||||
cd "${dir}" || exit 1
|
||||
|
||||
hostname > hosts
|
||||
ansible-pull -i "${dir}/hosts" -U "${UREP}"
|
||||
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
|
||||
|
||||
exit 0
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z ${UREP+x} ]; then
|
||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2022.git
|
||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
||||
fi
|
||||
|
||||
dir=/root/tools/ansible
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
ovarelease="2023b"
|
||||
ovarelease="2023a"
|
||||
ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova"
|
||||
|
||||
|
||||
@ -37,6 +37,10 @@ create_if () {
|
||||
}
|
||||
|
||||
|
||||
if [[ $# != 1 ]] ; then
|
||||
usage
|
||||
fi
|
||||
|
||||
vm=$1
|
||||
|
||||
create_vm "${vm}"
|
||||
|
Reference in New Issue
Block a user