Compare commits

...

9 Commits

Author SHA1 Message Date
9065e886f0 modif fichier hosts pour depl vers s-adm, et doc. README 2021-04-06 17:26:56 +02:00
9f635de453 ajout paquets modules php 2021-04-06 17:05:30 +02:00
6f803444a8 syntaxe 2021-04-01 17:55:42 +02:00
bd4bcc11b3 syntaxe 2021-04-01 17:53:01 +02:00
a816f352b6 synax markdown 2021-04-01 17:28:19 +02:00
a113358c91 syntaxe markdown 2021-04-01 16:59:26 +02:00
TL
56aff49921 ajout troisieme serveur web 2021-04-01 16:53:43 +02:00
8341359c45 Mise à jour de 'goss/s-agence.yaml' 2021-04-01 16:51:35 +02:00
fe747c36c8 decommente role goss dans s-adm 2021-04-01 16:48:13 +02:00
7 changed files with 51 additions and 28 deletions

View File

@ -25,10 +25,22 @@ On utilisera l'image de machine virtuelle suivante :
### Machine s-adm
- créer la machine virtuelle **s-adm** en important l'image ova décrite plus haut
-
* créer la machine virtuelle **s-adm** en important l'image ova décrite plus haut
* renommer la machine puis redémarrer
* taper :
```shell
mkdir -p tools/ansible ; cd tools/ansible
git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2021.git
cd gsb2021/pre
bash inst-depl
cd /var/www/html/gsbstore
bash getall-latest
cd /root/tools/ansible/gsb021
bash gsbboot
bash pull-config
```
- redémarrer
### Pour chaque machine
- importer la machine à partir du fichier **.ova**
@ -36,7 +48,12 @@ On utilisera l'image de machine virtuelle suivante :
- donner le nom adapté (avec sed -i …)
- redémarrer
- mettre à jour les paquets : apt update && apt upgrade
- cloner le dépot : https://gitea.lyc-lecastel.fr/gadmin/gsb2021.git
curl depl/gsbboot|bash
- cloner le dépot :
```shell
mkdir -p tools/ansible ; cd tools/ansible
git clone https://gitea.lyc-lecastel.fr/gadmin/gsb2021.git
cd gsb2021/pre
export DEPL=192.168.99.99
bash gsbboot
bash pull-config
```

View File

@ -7,31 +7,31 @@ command:
- 192.168.99.0/24
stderr: []
timeout: 10000
ping -c 2 172.16.0.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 172.16.128.254:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.1.2:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.200.254:
ping -c 2 192.168.1.1:
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 192.168.200.254
exit-status: 0
stdout:
- 0% packet loss
stderr: []
timeout: 10000
ping -c 2 172.16.0.1:
exit-status: 0
stdout:
- 0% packet loss

View File

@ -2,9 +2,9 @@
127.0.1.1 {{ ansible_nodename }} {{ ansible_hostname }}
127.0.0.1 localhost ip6-localhost ip6-loopback
10.121.38.10 depl.sio.lan depl
#10.121.38.10 depl.sio.lan depl
192.168.99.99 s-adm.gsb.adm
192.168.99.99 s-adm.gsb.adm depl.sio.lan depl
192.168.99.1 s-infra.gsb.adm
192.168.99.2 s-proxy.gsb.adm
192.168.99.3 s-appli.gsb.adm

View File

@ -3,9 +3,9 @@
127.0.0.1 localhost ip6-localhost ip6-loopback
172.16.0.2 s-proxy.gsb.lan s-proxy
10.121.38.10 depl
#10.121.38.10 depl
192.168.99.99 s-adm.gsb.adm
192.168.99.99 s-adm.gsb.adm depl
192.168.99.1 s-infra.gsb.adm
192.168.99.2 s-proxy.gsb.adm
192.168.99.3 s-appli.gsb.adm

View File

@ -44,7 +44,7 @@ backend fermeweb
#option httpchk HEAD / HTTP/1.0
server s-lb-web1 192.168.101.1:80 check
server s-lb-web2 192.168.101.2:80 check
# server s-lb-web3 192.168.101.3:80 check
server s-lb-web3 192.168.101.3:80 check
listen stats
bind *:8080

View File

@ -1,10 +1,16 @@
---
- name: Install apache2 php php5-mysql
- name: Install apache2 php php5-mysql et autres modules php
apt:
name:
- apache2
- php
- php-mysql
- php-gd
- php-zip
- php-mbstring
- php-curl
- php-imagick
- php-xml
state: present
- name: copie exports pour partage nfs wordpress

View File

@ -4,7 +4,7 @@
roles:
- base
# - goss
- goss
- s-ssh
- dnsmasq
- squid