Compare commits

...

12 Commits

Author SHA1 Message Date
bbbb
45e4401dcc maj lb-front-ssl pour une version fonctionnelle 2024-06-04 15:49:33 +02:00
sio user
dc50059f19 Maj version ova README.md 2024-05-23 16:15:40 +02:00
sio user
ada657401f Mef 2 2024-05-23 16:13:12 +02:00
sio user
b126e7f9e3 Mef README.md 2024-05-23 16:11:47 +02:00
sio user
f9f3e8da8e Maj version debian-bookworm-gsb-2024a -> b 2024-05-23 16:08:27 +02:00
Jimmy Chevanne
be4f3b9030 maj mkvm 2024-05-23 11:26:02 +02:00
c590edb875 maj role zabbix-cli et awx-user sur s-adm et s-infra 2024-05-02 09:49:05 +02:00
3cd52a230e maj awx 2024-05-02 08:39:34 +02:00
root
8dd65d65eb role awx actualisé 2024-05-01 12:02:05 +02:00
a
aac0f13134 script mkvm.ps1 2024-04-17 21:09:06 +02:00
a
ea60c89bf1 fix script mkvm.ps1 2024-04-17 09:01:47 +02:00
bbbb
272867304a reparation script mkvm.ps1 2024-04-16 11:27:20 +02:00
10 changed files with 58 additions and 20 deletions

View File

@ -1,7 +1,8 @@
# gsb2024 # gsb2024
2024-04-12 8h55 ps * 2024-05-23 16h07 ps
2024-01-19 11h45 ps * 2024-04-12 8h55 ps
* 2024-01-19 11h45 ps
Environnement et playbooks **ansible** pour le projet **GSB 2024** Environnement et playbooks **ansible** pour le projet **GSB 2024**
@ -12,7 +13,7 @@ Prérequis :
* VirtualBox * VirtualBox
* git * git
* fichier machines virtuelles **ova** : * fichier machines virtuelles **ova** :
* **debian-bookworm-gsb-2024a.ova** * **debian-bookworm-gsb-2024b.ova**
* **debian-bullseye-gsb-2024b.ova** * **debian-bullseye-gsb-2024b.ova**
@ -50,7 +51,7 @@ Il existe un playbook ansible pour chaque machine à installer, nommé comme la
## Installation ## Installation
On utilisera les images de machines virtuelle suivantes : On utilisera les images de machines virtuelle suivantes :
* **debian-bookworm-gsb-2024a.ova** (2024-04-11) * **debian-bookworm-gsb-2024b.ova** (2024-05-23)
* Debian Bookworm 12.5 - 2 cartes - 1 Go - Stockage 20 Go * Debian Bookworm 12.5 - 2 cartes - 1 Go - Stockage 20 Go
et pour **s-fog** : et pour **s-fog** :

View File

@ -5,7 +5,11 @@
name: awx name: awx
groups: sudo groups: sudo
append: yes append: yes
shell: /bin/bash
- name: Cration d'un mdp pour user awx
user:
name: awx
password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70'
- name: Get awx key_pub - name: Get awx key_pub
get_url: get_url:

View File

@ -7,6 +7,12 @@
shell: /bin/bash shell: /bin/bash
generate_ssh_key: yes generate_ssh_key: yes
#- name: Creation mdp user awx
# ansible.builtin.user:
#name:
#user: awx
# password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70'
- name: Copie cle publique dans gsbstore - name: Copie cle publique dans gsbstore
copy: copy:
src: /home/awx/.ssh/id_rsa.pub src: /home/awx/.ssh/id_rsa.pub

View File

@ -3,12 +3,38 @@
name: haproxy name: haproxy
state: present state: present
- name: Creer le repertoire du certificat
file:
path: /etc/haproxy/crt
state: directory
mode: '0755'
- name: Creer le repertoire de la cle privee
file:
path: /etc/haproxy/crt/private
state: directory
mode: '0755'
- name: Generer une clee privee avec les valeurs par defaut (4096 bits, RSA)
openssl_privatekey:
path: /etc/haproxy/crt/private/haproxy.pem.key
size: 4096
type: RSA
state: present
- name: creer un certificat auto-signé - name: creer un certificat auto-signé
openssl_certificate: openssl_certificate:
path: /etc/haproxy/crt/haproxy.crt path: /etc/haproxy/crt/private/haproxy.pem
privatekey_path: /etc/haproxy/crt/private/haproxy.pem privatekey_path: /etc/haproxy/crt/private/haproxy.pem.key
csr_path: /etc/haproxy/crt/csr/haproxy.csr
provider: selfsigned provider: selfsigned
state: present
- name: s'assurer que le certificat a les bonnes permissions
file:
path: /etc/haproxy/crt/private/haproxy.pem
owner: root
group: haproxy
mode: '0640'
- name: parametre global - name: parametre global
blockinfile: blockinfile:
@ -31,7 +57,7 @@
block: | block: |
frontend proxypublic frontend proxypublic
bind 192.168.100.10:80 bind 192.168.100.10:80
bind 192.168.100.10:443 ssl crt /etc/haproxy/crt/pritvate/haproxy.pem bind 192.168.100.10:443 ssl crt /etc/haproxy/crt/private/haproxy.pem
http-request redirect scheme https unless { ssl_fc } http-request redirect scheme https unless { ssl_fc }
default_backend fermeweb default_backend fermeweb

View File

@ -7,12 +7,12 @@
roles: roles:
- base - base
- s-ssh - s-ssh
#- zabbix-cli
- dnsmasq - dnsmasq
- squid - squid
- ssh-backup-key-gen - ssh-backup-key-gen
- awx-user # awx-user
# - local-store # - local-store
# - zabbix-cli
## - syslog-cli ## - syslog-cli
- post - post
# - goss # - goss

View File

@ -6,7 +6,7 @@
- base - base
- goss - goss
- ssh-cli - ssh-cli
- awx-user - awx-user-cli
#- awx #- awx
# - zabbix-cli # - zabbix-cli
- journald-snd - journald-snd

View File

@ -6,12 +6,13 @@
roles: roles:
- base - base
- zabbix-cli #- zabbix-cli
- goss - goss
- dns-master - dns-master
- webautoconf - webautoconf
# - elk-filebeat-cli # - elk-filebeat-cli
# - journald-snd - journald-snd
- ssh-cli - ssh-cli
#- awx-user-cli
- post - post

View File

@ -5,8 +5,8 @@
roles: roles:
- base - base
- goss - goss
- lb-front #- lb-front
#- lb-front-ssl - lb-front-ssl
#- zabbix-cli #- zabbix-cli
- ssh-cli - ssh-cli
- post - post

View File

@ -2,7 +2,7 @@
mkvmrelease="v1.3.3" mkvmrelease="v1.3.3"
ovarelease="2024a" ovarelease="2024b"
ovafogrelease="2024b" ovafogrelease="2024b"
#ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova" #ovafile="$HOME/Téléchargements/debian-bullseye-gsb-${ovarelease}.ova"
ovafile="$HOME/Téléchargements/debian-bookworm-gsb-${ovarelease}.ova" ovafile="$HOME/Téléchargements/debian-bookworm-gsb-${ovarelease}.ova"

View File

@ -4,7 +4,7 @@
#mkvm pour toutes les vms #mkvm pour toutes les vms
$mkvmrelease="v1.3.1" $mkvmrelease="v1.3.1"
$ovarelease="2024a" $ovarelease="2024b"
$ovafogrelease="2024b" $ovafogrelease="2024b"
$ovafile="$HOME\Downloads\debian-bookworm-gsb-${ovarelease}.ova" $ovafile="$HOME\Downloads\debian-bookworm-gsb-${ovarelease}.ova"
$ovafilefog="$HOME\Downloads\debian-bullseye-gsb-${ovafogrelease}.ova" $ovafilefog="$HOME\Downloads\debian-bullseye-gsb-${ovafogrelease}.ova"
@ -30,8 +30,8 @@ $vmCpus = @{
function create_vm{ param([string]$nomvm) function create_vm{ param([string]$nomvm)
if ($vmMem.ContainsKey($nomvm)) { if (($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) {
& "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm} & "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm]
Write-Host "Machine $nomvm importée" Write-Host "Machine $nomvm importée"
} else { } else {
#Importation depuis l'ova #Importation depuis l'ova