Compare commits
25 Commits
v0.0.2.u-m
...
v0.0.3l-em
Author | SHA1 | Date | |
---|---|---|---|
82f6fdc9c9 | |||
17618a8c8e | |||
3dac065600 | |||
acb722461c | |||
6200de2cda | |||
0074367972 | |||
3aa4a58252 | |||
8fd183998e | |||
f4b736847e | |||
5c8efd5e62 | |||
ab2cc8da96 | |||
44c8fc32a5 | |||
385563b4f2 | |||
fff62c5507 | |||
6139095296 | |||
9b609e6418 | |||
332c8a2167 | |||
a3c2d85952 | |||
f8e3eabb9d | |||
043a273589 | |||
5981b67dd9 | |||
36336384e6 | |||
0da9fc0d5a | |||
62f9591c62 | |||
c32cf92cf5 |
52
goss/r-vp2.yaml
Normal file
52
goss/r-vp2.yaml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
file:
|
||||||
|
/etc/wireguard/wg0.conf:
|
||||||
|
exists: true
|
||||||
|
mode: "0644"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
filetype: file
|
||||||
|
contains: []
|
||||||
|
package:
|
||||||
|
wireguard:
|
||||||
|
installed: true
|
||||||
|
versions:
|
||||||
|
- 1.0.20210223-1
|
||||||
|
wireguard-tools:
|
||||||
|
installed: true
|
||||||
|
versions:
|
||||||
|
- 1.0.20210223-1
|
||||||
|
service:
|
||||||
|
isc-dhcp-server:
|
||||||
|
enabled: true
|
||||||
|
running: true
|
||||||
|
wg-quick@wg0:
|
||||||
|
enabled: true
|
||||||
|
running: true
|
||||||
|
command:
|
||||||
|
ping -c4 10.0.0.1:
|
||||||
|
exit-status: 0
|
||||||
|
stdout:
|
||||||
|
- 0% packet loss
|
||||||
|
stderr: []
|
||||||
|
timeout: 10000
|
||||||
|
interface:
|
||||||
|
enp0s3:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 192.168.99.102/24
|
||||||
|
mtu: 1500
|
||||||
|
enp0s8:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 172.16.128.254/24
|
||||||
|
mtu: 1500
|
||||||
|
enp0s9:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 192.168.0.52/24
|
||||||
|
mtu: 1500
|
||||||
|
wg0:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 10.0.0.2/32
|
||||||
|
mtu: 1420
|
@ -1,67 +0,0 @@
|
|||||||
package:
|
|
||||||
ferm:
|
|
||||||
installed: true
|
|
||||||
ipsec:
|
|
||||||
installed: true
|
|
||||||
port:
|
|
||||||
tcp:53:
|
|
||||||
listening: true
|
|
||||||
udp:67:
|
|
||||||
listening: true
|
|
||||||
udp:68:
|
|
||||||
listening: true
|
|
||||||
service:
|
|
||||||
dnsmasq:
|
|
||||||
enabled: true
|
|
||||||
running: true
|
|
||||||
ferm:
|
|
||||||
enabled: true
|
|
||||||
running: true
|
|
||||||
ssh:
|
|
||||||
enabled: true
|
|
||||||
running: true
|
|
||||||
command:
|
|
||||||
sysctl net.ipv4.ip_forward:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- net.ipv4.ip_forward = 1
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
sysctl ping -c 4 192.168.0.51:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 4 received = 1
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
sysctl ping -c 4 192.168.1.1:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 4 received = 1
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
sysctl ping -c 4 192.168.200.254:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 4 received = 1
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
sysctl ping -c 4 172.16.0.1:
|
|
||||||
exit-status: 0
|
|
||||||
stdout:
|
|
||||||
- 4 received = 1
|
|
||||||
stderr: []
|
|
||||||
timeout: 10000
|
|
||||||
process:
|
|
||||||
dnsmasq:
|
|
||||||
running: true
|
|
||||||
squid3:
|
|
||||||
running: true
|
|
||||||
interface:
|
|
||||||
enp0s8:
|
|
||||||
exists: true
|
|
||||||
addrs:
|
|
||||||
- 172.16.128.254/24
|
|
||||||
enp0s9:
|
|
||||||
exists: true
|
|
||||||
addrs:
|
|
||||||
- 192.168.0.52/24
|
|
@ -1,39 +1,19 @@
|
|||||||
command:
|
command:
|
||||||
ip r:
|
ip route |grep default:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- default via 172.16.128.254 dev enp0s8
|
- default via 172.16.128.254 dev enp0s8
|
||||||
- 172.16.128.0/24
|
|
||||||
- 192.168.99.0/24
|
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
ping -c 2 172.16.128.254:
|
ping -c4 172.16.0.1:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 0% packet loss
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
ping -c 2 192.168.1.2:
|
ping -c4 172.16.128.254:
|
||||||
exit-status: 0
|
exit-status: 0
|
||||||
stdout:
|
stdout:
|
||||||
- 0% packet loss
|
- 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.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
|
|
||||||
stderr: []
|
stderr: []
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
|
41
goss/s-backup.yaml
Normal file
41
goss/s-backup.yaml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
package:
|
||||||
|
bind9:
|
||||||
|
installed: true
|
||||||
|
cifs-utils:
|
||||||
|
installed: true
|
||||||
|
rsync:
|
||||||
|
installed: true
|
||||||
|
smbclient:
|
||||||
|
installed: true
|
||||||
|
service:
|
||||||
|
bind9:
|
||||||
|
enabled: true
|
||||||
|
running: true
|
||||||
|
rsync:
|
||||||
|
enabled: true
|
||||||
|
running: false
|
||||||
|
command:
|
||||||
|
ping -c4 ns.gsb.lan:
|
||||||
|
exit-status: 0
|
||||||
|
stdout:
|
||||||
|
- 0% packet loss
|
||||||
|
stderr: []
|
||||||
|
timeout: 10000
|
||||||
|
#check si partage windows accesible
|
||||||
|
smbclient -L //s-win --user=uBackup%Azerty1+ | grep 'public':
|
||||||
|
exit-status: 0
|
||||||
|
stdout:
|
||||||
|
- public
|
||||||
|
stderr: []
|
||||||
|
timeout: 10000
|
||||||
|
interface:
|
||||||
|
enp0s3:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 192.168.99.4/24
|
||||||
|
mtu: 1500
|
||||||
|
enp0s8:
|
||||||
|
exists: true
|
||||||
|
addrs:
|
||||||
|
- 172.16.0.4/24
|
||||||
|
mtu: 1500
|
@ -9,16 +9,23 @@ apt update && apt upgrade
|
|||||||
apt install -y apache2 git
|
apt install -y apache2 git
|
||||||
STOREREP="/var/www/html/gsbstore"
|
STOREREP="/var/www/html/gsbstore"
|
||||||
|
|
||||||
GLPIREL=10.0.5
|
GLPIREL=10.0.6
|
||||||
str="wget -nc https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz"
|
str="wget -nc https://github.com/glpi-project/glpi/releases/download/${GLPIREL}/glpi-${GLPIREL}.tgz"
|
||||||
|
|
||||||
FIREL=10.0.3+1.0
|
|
||||||
str2="https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FIREL}/fusioninventory-${FIREL}.tar.bz2"
|
|
||||||
|
|
||||||
FIAGREL=2.6
|
#Fusion Inventory
|
||||||
str31="wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x64_${FIAGREL}.exe"
|
|
||||||
|
#FIREL=10.0.3+1.0
|
||||||
|
#str2="https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FIREL}/fusioninventory-${FIREL}.tar.bz2"
|
||||||
|
|
||||||
|
|
||||||
|
#GLPI Agent
|
||||||
|
|
||||||
|
GLPIAGVER=1.4
|
||||||
|
str31="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x64.msi"
|
||||||
|
|
||||||
|
str32="wget -nc https://github.com/glpi-project/glpi-agent/releases/download/${GLPIAGVER}/GLPI-Agent-${GLPIAGVER}-x86.msi"
|
||||||
|
|
||||||
str32="wget -nc https://github.com/fusioninventory/fusioninventory-agent/releases/download/${FIAGREL}/fusioninventory-agent_windows-x86_${FIAGREL}.exe"
|
|
||||||
|
|
||||||
FOGREL=1.5.9
|
FOGREL=1.5.9
|
||||||
str4="wget -nc https://github.com/FOGProject/fogproject/archive/${FOGREL}.tar.gz -O fogproject-${FOGREL}.tar.gz"
|
str4="wget -nc https://github.com/FOGProject/fogproject/archive/${FOGREL}.tar.gz -O fogproject-${FOGREL}.tar.gz"
|
||||||
|
6
roles/glpi/defaults/main.yml
Normal file
6
roles/glpi/defaults/main.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
||||||
|
#depl_glpi: "glpi-9.5.6.tgz"
|
||||||
|
depl_glpi: "glpi-10.0.6.tgz"
|
||||||
|
#depl_fusioninventory: "fusioninventory-9.5+3.0.tar.bz2"
|
||||||
|
depl_glpi_agentx64: "GLPI-Agent-1.4-x64.msi"
|
||||||
|
depl_glpi_agentx86: "GLPI-Agent-1.4-x86.msi"
|
@ -105,12 +105,12 @@
|
|||||||
# - name: copy .my.cnf file with root password credentials
|
# - name: copy .my.cnf file with root password credentials
|
||||||
# copy: src=.my.cnf dest=/root/tools/ansible/.my.cnf owner=root mode=0600
|
# copy: src=.my.cnf dest=/root/tools/ansible/.my.cnf owner=root mode=0600
|
||||||
|
|
||||||
- name: Installation de Fusioninventory pour Linux
|
# - name: Installation de Fusioninventory pour Linux
|
||||||
unarchive:
|
# unarchive:
|
||||||
src: "{{ depl_url }}/{{ depl_fusioninventory }}"
|
# src: "{{ depl_url }}/{{ depl_fusioninventory }}"
|
||||||
#src: http://depl/gsbstore/fusioninventory-{{ fd_version }}.tar.bz2
|
#src: http://depl/gsbstore/fusioninventory-{{ fd_version }}.tar.bz2
|
||||||
dest: /var/www/html/glpi/plugins
|
# dest: /var/www/html/glpi/plugins
|
||||||
remote_src: yes
|
# remote_src: yes
|
||||||
|
|
||||||
- name: Creation de ficlient
|
- name: Creation de ficlient
|
||||||
file:
|
file:
|
||||||
@ -127,23 +127,15 @@
|
|||||||
group: www-data
|
group: www-data
|
||||||
mode: 0775
|
mode: 0775
|
||||||
|
|
||||||
- name: Installation de FusionInventory windows x64
|
- name: Installation de GLPI Agent windows x64
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ depl_url }}/{{ depl_fusioninventory_agentx64 }}"
|
url: "{{ depl_url }}/{{ depl_glpi_agentx64 }}"
|
||||||
dest: "/var/www/html/ficlients"
|
dest: "/var/www/html/ficlients"
|
||||||
|
|
||||||
- name: Installation de FusionInventory windows x86
|
# - name: Installation de GLPI Agent windows x86
|
||||||
get_url:
|
# get_url:
|
||||||
url: "{{ depl_url }}/{{ depl_fusioninventory_agentx86 }}"
|
# url: "{{ depl_url }}/{{ depl_glpi_agentx86 }}"
|
||||||
dest: "/var/www/html/ficlients"
|
# dest: "/var/www/html/ficlients"
|
||||||
|
|
||||||
- name: Attribution des permissions sur repertoire /plugins/fusioninventory
|
|
||||||
file:
|
|
||||||
path: /var/www/html/glpi/plugins/fusioninventory
|
|
||||||
owner: www-data
|
|
||||||
group: www-data
|
|
||||||
recurse: yes
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Copie du script dbdump
|
- name: Copie du script dbdump
|
||||||
copy:
|
copy:
|
@ -1,6 +0,0 @@
|
|||||||
depl_url: "http://s-adm.gsb.adm/gsbstore"
|
|
||||||
#depl_glpi: "glpi-9.5.6.tgz"
|
|
||||||
depl_glpi: "glpi-10.0.5.tgz"
|
|
||||||
depl_fusioninventory: "fusioninventory-9.5+3.0.tar.bz2"
|
|
||||||
depl_fusioninventory_agentx64: "fusioninventory-agent_windows-x64_2.6.exe"
|
|
||||||
depl_fusioninventory_agentx86: "fusioninventory-agent_windows-x86_2.6.exe"
|
|
@ -8,7 +8,7 @@
|
|||||||
path: /etc/haproxy/haproxy.cfg
|
path: /etc/haproxy/haproxy.cfg
|
||||||
block: |
|
block: |
|
||||||
frontend proxypublic
|
frontend proxypublic
|
||||||
bind 192.168.56.2:80
|
bind 192.168.100.10:80
|
||||||
default_backend fermeweb
|
default_backend fermeweb
|
||||||
|
|
||||||
backend fermeweb
|
backend fermeweb
|
||||||
@ -21,5 +21,5 @@
|
|||||||
- name: redemarre haproxy
|
- name: redemarre haproxy
|
||||||
service:
|
service:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
state: restarted
|
# state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
@ -5,6 +5,6 @@ Ce rôle :
|
|||||||
* installe **nfs-server**
|
* installe **nfs-server**
|
||||||
* copie le fichier de configuration **exports** pour exporter le répertoire **/home/wordpress**
|
* copie le fichier de configuration **exports** pour exporter le répertoire **/home/wordpress**
|
||||||
* relance le service **nfs-server**
|
* relance le service **nfs-server**
|
||||||
|
* décompresse wordpress
|
||||||
### Objectif
|
### Objectif
|
||||||
Le répertoire **/home/wordpress** est exporté par **nfs** sur le réseau **n-dmz-db**
|
Le répertoire **/home/wordpress** est exporté par **nfs** sur le réseau **n-dmz-db**
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
# Example for NFSv4:
|
# Example for NFSv4:
|
||||||
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
|
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
|
||||||
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
|
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
|
||||||
/home/wordpress 192.168.102.0/255.255.255.0 (rw,no_root_squash,subtree_check)
|
/home/wordpress 192.168.102.0/255.255.255.0(rw,no_root_squash,subtree_check)
|
||||||
|
@ -1,18 +1,77 @@
|
|||||||
---
|
- name: 00 - cree repertoire wordpress pour export nfs
|
||||||
- name: installation des paquets
|
file:
|
||||||
apt:
|
path: /exports/wordpress
|
||||||
name:
|
state: directory
|
||||||
- nfs-kernel-server
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: copie exports pour partage nfs wordpress
|
- name: 05 - Install nfs-server
|
||||||
copy:
|
apt:
|
||||||
src: exports
|
name: nfs-server
|
||||||
dest: /etc
|
state: present
|
||||||
|
|
||||||
- name: redemarrage du service rpcbind requis pour le service nfs
|
- name: 10 - creation fichier exports nfs
|
||||||
shell: service rpcbind restart
|
ansible.builtin.blockinfile:
|
||||||
|
path: /etc/exports
|
||||||
|
block: |
|
||||||
|
/exports/wordpress 192.168.56.0/255.255.255.0 (rw,no_root_squash,subtree_check)
|
||||||
|
|
||||||
- name: redemarrage du service nfs-kernel-server
|
|
||||||
shell: service nfs-kernel-server restart
|
- name: 15 - Recupere wordpress.tar.gz
|
||||||
|
get_url:
|
||||||
|
url: "https://fr.wordpress.org/latest-fr_FR.tar.gz"
|
||||||
|
dest: /tmp/wordpress-6.1.1-fr_FR.tar.gz
|
||||||
|
|
||||||
|
- name: 20 - decompresse wordpress
|
||||||
|
unarchive:
|
||||||
|
src: /tmp/wordpress-6.1.1-fr_FR.tar.gz
|
||||||
|
dest: /exports/
|
||||||
|
remote_src: yes
|
||||||
|
|
||||||
|
- name: 22 - change owner et group pour repertoire wordpress
|
||||||
|
file:
|
||||||
|
path: /exports/wordpress
|
||||||
|
state: directory
|
||||||
|
recurse: yes
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
|
||||||
|
- name: 30 - genere fichier de config wordpress
|
||||||
|
copy:
|
||||||
|
src: /exports/wordpress/wp-config-sample.php
|
||||||
|
dest: /exports/wordpress/wp-config.php
|
||||||
|
remote_src: yes
|
||||||
|
|
||||||
|
- name: 35 - ajuste variable dbname dans fichier de config wp-config.php
|
||||||
|
replace:
|
||||||
|
path: /exports/wordpress/wp-config.php
|
||||||
|
regexp: "votre_nom_de_bdd"
|
||||||
|
replace: "wordpressdb"
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
|
||||||
|
- name: 40 ajuste variable dbusername dans fichier de config wp-config.php
|
||||||
|
replace:
|
||||||
|
path: /exports/wordpress/wp-config.php
|
||||||
|
regexp: "votre_utilisateur_de_bdd"
|
||||||
|
replace: "wordpressuser"
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
- name: 45 - ajuste variable mdp dans fichier de config wp-config.php
|
||||||
|
replace:
|
||||||
|
path: /exports/wordpress/wp-config.php
|
||||||
|
regexp: "votre_mdp_de_bdd"
|
||||||
|
replace: "wordpresspasswd"
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
- name: 50 - ajuste hostname fichier wp-config.php
|
||||||
|
replace:
|
||||||
|
path: /exports/wordpress/wp-config.php
|
||||||
|
regexp: "localhost"
|
||||||
|
replace: "192.168.102.253"
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
- name: 55 - relance nfs
|
||||||
|
service:
|
||||||
|
name: nfs-server
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
|
@ -1,38 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: creation repertoir
|
- name: installation php et apache ...
|
||||||
file:
|
apt:
|
||||||
path: /home/
|
name:
|
||||||
state: directory
|
- apache2
|
||||||
- name: download and extract wordpress
|
- php
|
||||||
unarchive:
|
- php-mbstring
|
||||||
src: "{{ depl_url }}/{{ depl_wordpress }}"
|
- php-mysql
|
||||||
dest: /home/
|
- mariadb-client
|
||||||
remote_src: yes
|
state: present
|
||||||
owner: www-data
|
|
||||||
group: www-data
|
|
||||||
|
|
||||||
- name: Copy sample config file
|
|
||||||
command: mv /home/wordpress/wp-config-sample.php /home/wordpress/wp-config.php creates=/home/wordpress/wp-config.php
|
|
||||||
|
|
||||||
- name: Changement du fichier de conf
|
|
||||||
copy:
|
|
||||||
src: wp-config.php
|
|
||||||
dest: /home/wordpress/wp-config.php
|
|
||||||
|
|
||||||
- name: Attributions des permissions
|
|
||||||
file:
|
|
||||||
path: /home/wordpress
|
|
||||||
recurse: yes
|
|
||||||
owner: 33
|
|
||||||
group: 33
|
|
||||||
|
|
||||||
# - name: Fix permissions
|
|
||||||
# shell: chown -R www-data /var/www/wordpress/*
|
|
||||||
#
|
|
||||||
# - name: Update default Apache site
|
|
||||||
# lineinfile:
|
|
||||||
# dest=/etc/apache2/sites-enabled/000-default.conf
|
|
||||||
# regexp="(.)+DocumentRoot /var/www/html"
|
|
||||||
# line="DocumentRoot /var/www/wordpress"
|
|
||||||
# notify:
|
|
||||||
# - restart apache2
|
|
||||||
|
@ -6,3 +6,18 @@
|
|||||||
- cifs-utils
|
- cifs-utils
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: copie script backupsmb dans /usr/local/bin
|
||||||
|
copy:
|
||||||
|
src: backupsmb.sh
|
||||||
|
dest: /usr/local/bin
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: crontab backupsmb ( commentee par defaut )
|
||||||
|
cron:
|
||||||
|
name: backupsmb
|
||||||
|
disabled: true
|
||||||
|
minute: "0"
|
||||||
|
hour: "5"
|
||||||
|
job: "/usr/local/bin/backupsmb.sh"
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
#Installation de r-vp1 (Wireguard)
|
Procédure d'installation de r-vp1 et de copie du fichier wg0-b.conf.
|
||||||
|
|
||||||
***
|
|
||||||
Ce fichier à pour but de présenter l'installation de r-vp1
|
|
||||||
***
|
***
|
||||||
|
|
||||||
Se rendre dans le dossier gsb2022 et éxécuter la commande suivante :
|
Depuis r-vp1 se deplacer dans le repertoire **/tools/ansible/gsb2023** pour executer le playbook:
|
||||||
_"ansible-playbook -i localhost, -c local r-vp1.yml"_
|
**"ansible-playbook -i localhost, -c local r-vp1.yml"** puis reboot r-vp1.
|
||||||
Attendre la fin de l'installation, puis se rendre dans le dossier confwg
|
|
||||||
Faites une copie à distance du fichier wg0-b.conf sur r-vp2 et déplacer le fichier wg0-a.conf localement dans /etc/wireguard
|
Attendre la fin de l'installation. Ensuite faire une copie distante du fichier
|
||||||
Renommer les deux fichiers en wg0.conf
|
wg0-b.conf sur r-vp2 **"scp /confwg/wg0-b.conf root@'ip r-vp2':/etc/wireguard/"**.
|
||||||
Executer _"systemctl enable wg-quick@wg0"_ puis _"systemctl start wg-quick@wg0"_ sur r-vp1 et r-vp2
|
|
||||||
Entrer la commande _"wg"_ si des paquets sont envoyés et reçus votre VPN fonctionne.
|
Renommer les fichiers en **wg0.conf**
|
||||||
Lorsque votre infrastructure est prête rendez vous dans gsb2022 et éxécuter le **fichier ping-sagence** afin vérifier le bon fonctionnement.
|
|
||||||
|
Executer **"systemctl enable wg-quick@wg0"** puis **"systemctl start wg-quick@wg0"** sur r-vp1 et r-vp2.
|
||||||
|
Entrer la commande **"wg"** pour voir si l'interface wg0 est correctement montée.
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
- goss
|
||||||
# - proxy3
|
# - proxy3
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
# - ssh-cli
|
# - ssh-cli
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
glpi_version: "10.0.6"
|
||||||
glpi_version: "9.4.5"
|
|
||||||
fd_version: "9.4+1.1"
|
|
||||||
fd_version64: "x64_2.5.2"
|
|
||||||
fd_version86: "x86_2.5.2"
|
|
||||||
glpi_dir: "/var/www/html/glpi"
|
glpi_dir: "/var/www/html/glpi"
|
||||||
glpi_dbhost: "127.0.0.1"
|
glpi_dbhost: "127.0.0.1"
|
||||||
glpi_dbname: "glpi"
|
glpi_dbname: "glpi"
|
||||||
@ -18,7 +14,7 @@
|
|||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- itil
|
- glpi
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
- syslog-cli
|
||||||
- post
|
- post
|
||||||
|
@ -8,4 +8,3 @@
|
|||||||
- snmp-agent
|
- snmp-agent
|
||||||
- lb-nfs-client
|
- lb-nfs-client
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
@ -8,4 +8,3 @@
|
|||||||
- snmp-agent
|
- snmp-agent
|
||||||
- lb-nfs-client
|
- lb-nfs-client
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user