Compare commits

..

No commits in common. "a508e7e65c6258eabf9888ea4d07f1998e58bd57" and "e395c1475204b71ed53d7067a31b471c1529bf76" have entirely different histories.

22 changed files with 26 additions and 35 deletions

View File

@ -1,6 +1,6 @@
# gsb2023
2023-01-18 ps
2023-01-06
Environnement et playbooks ansible pour le projet GSB 2023
@ -8,28 +8,15 @@ Environnement et playbooks ansible pour le projet GSB 2023
prérequis :
* une machine Debian Bullseye
* VirtualBox
* fichier machines viruelles ova :
* debian-bullseye-gsb-2023a.ova
* debian-buster-gsb-2023a.ova
## Les machines
* s-adm : routeur adm, DHCP + NAT, deploiement, proxy squid
* s-infra : DNS maitre
* r-int : routaage, DHCP
* r-ext : routage, NAT
* s-proxy : squid
* s-itil : serveur GLPI
* s-backup : DNS esclave + sauvegarde s-win
* s-mon : supervision avec **Nagios4** et syslog
* s-fog : deploiement postes de travail avec **FOG**
* s-win : Windows Server 2019, AD, DNS, DHCP, partage fichiers
* s-nxc : NextCloud avec **docker**
* s-elk : pile ELK dockerisée
* s-lb : Load Balancer **HaProxy** pour application Wordpress
* r-vp1 : Routeur VPN Wireguard coté siège
* r-vp2 : Routeur VPN Wireguard coté agence, DHCP
* s-adm
* s-infra
* r-int
* r-ext
* s-proxy
## Les playbooks

8
graylog-pont.yml Normal file
View File

@ -0,0 +1,8 @@
---
- hosts: localhost
connection: local
roles:
- goss
- docker-graylog-pont
- post

View File

@ -1,5 +1,5 @@
#!/bin/bash
## aa : 2023-04-18 15:25
## ps : 2021-04-01 15:25
set -o errexit
set -o pipefail

View File

@ -1,9 +1,5 @@
#!/bin/bash
dir=/root/tools/ansible
prj=gsb2023
opt=""
if [ -z ${UREP+x} ]; then
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
fi
@ -15,14 +11,6 @@ dir=/root/tools/ansible
cd "${dir}" || exit 1
hostname > hosts
if [[ $# == 1 ]] ; then
opt=$1
fi
if [[ "${opt}" == '-l' ]] ; then
cd "${dir}/${prj}" || exit 2
ansible-playbook -i localhost, -c local "$(hostname).yml"
else
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
fi
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
exit 0

1
proxy Symbolic link
View File

@ -0,0 +1 @@
/etc/nginx/sites-availables/proxy

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ -z ${UREP+x} ]; then
if [ -z ${UREP+x} ]; then
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
fi
@ -11,6 +11,6 @@ dir=/root/tools/ansible
cd "${dir}" || exit 1
hostname > hosts
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
ansible-pull -i "${dir}/hosts" -U "${UREP}"
exit 0

7
snmp.yml Normal file
View File

@ -0,0 +1,7 @@
---
- hosts: localhost
connection: local
roles:
- snmp-agent