Compare commits
2 Commits
e395c14752
...
a508e7e65c
Author | SHA1 | Date | |
---|---|---|---|
|
a508e7e65c | ||
|
da5011466b |
25
README.md
25
README.md
@ -1,6 +1,6 @@
|
|||||||
# gsb2023
|
# gsb2023
|
||||||
|
|
||||||
2023-01-06
|
2023-01-18 ps
|
||||||
|
|
||||||
Environnement et playbooks ansible pour le projet GSB 2023
|
Environnement et playbooks ansible pour le projet GSB 2023
|
||||||
|
|
||||||
@ -8,15 +8,28 @@ Environnement et playbooks ansible pour le projet GSB 2023
|
|||||||
prérequis :
|
prérequis :
|
||||||
* une machine Debian Bullseye
|
* une machine Debian Bullseye
|
||||||
* VirtualBox
|
* VirtualBox
|
||||||
|
* fichier machines viruelles ova :
|
||||||
|
* debian-bullseye-gsb-2023a.ova
|
||||||
|
* debian-buster-gsb-2023a.ova
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Les machines
|
## Les machines
|
||||||
* s-adm
|
* s-adm : routeur adm, DHCP + NAT, deploiement, proxy squid
|
||||||
* s-infra
|
* s-infra : DNS maitre
|
||||||
* r-int
|
* r-int : routaage, DHCP
|
||||||
* r-ext
|
* r-ext : routage, NAT
|
||||||
* s-proxy
|
* 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
|
||||||
|
|
||||||
|
|
||||||
## Les playbooks
|
## Les playbooks
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
connection: local
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- goss
|
|
||||||
- docker-graylog-pont
|
|
||||||
- post
|
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## ps : 2021-04-01 15:25
|
## aa : 2023-04-18 15:25
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
dir=/root/tools/ansible
|
||||||
|
prj=gsb2023
|
||||||
|
opt=""
|
||||||
|
|
||||||
if [ -z ${UREP+x} ]; then
|
if [ -z ${UREP+x} ]; then
|
||||||
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
UREP=https://gitea.lyc-lecastel.fr/gadmin/gsb2023.git
|
||||||
fi
|
fi
|
||||||
@ -11,6 +15,14 @@ dir=/root/tools/ansible
|
|||||||
cd "${dir}" || exit 1
|
cd "${dir}" || exit 1
|
||||||
|
|
||||||
hostname > hosts
|
hostname > hosts
|
||||||
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
|
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
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user