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