Compare commits
9 Commits
v0.0.3p-fr
...
v0.0.3y-ps
Author | SHA1 | Date | |
---|---|---|---|
|
0d2968b2c8 | ||
|
86afa7c616 | ||
|
00071b1c67 | ||
|
b5237811e1 | ||
|
25bb47afd3 | ||
|
addabae478 | ||
|
a57998f5de | ||
|
262b7bdb13 | ||
|
c45dc50d12 |
@@ -1,21 +1,20 @@
|
|||||||
file:
|
file:
|
||||||
/etc/wireguard/wg0.conf:
|
/etc/wireguard/wg0.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0600"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
contains:
|
contains: []
|
||||||
- AllowedIPs = 10.0.0.2/32, 172.16.128.0/24
|
|
||||||
package:
|
package:
|
||||||
wireguard:
|
wireguard:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 1.0.20210223-1
|
- 1.0.20210914-1
|
||||||
wireguard-tools:
|
wireguard-tools:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 1.0.20210223-1
|
- 1.0.20210914-1+b1
|
||||||
service:
|
service:
|
||||||
wg-quick@wg0:
|
wg-quick@wg0:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
file:
|
file:
|
||||||
/etc/wireguard/wg0.conf:
|
/etc/wireguard/wg0.conf:
|
||||||
exists: true
|
exists: true
|
||||||
mode: "0644"
|
mode: "0600"
|
||||||
|
size: 374
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
filetype: file
|
filetype: file
|
||||||
@@ -10,11 +11,11 @@ package:
|
|||||||
wireguard:
|
wireguard:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 1.0.20210223-1
|
- 1.0.20210914-1
|
||||||
wireguard-tools:
|
wireguard-tools:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 1.0.20210223-1
|
- 1.0.20210914-1+b1
|
||||||
service:
|
service:
|
||||||
isc-dhcp-server:
|
isc-dhcp-server:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
83
localhost,
83
localhost,
@@ -1,83 +0,0 @@
|
|||||||
# Ce fichier viminfo a été généré par Vim 9.0.
|
|
||||||
# Vous pouvez l'éditer, mais soyez prudent.
|
|
||||||
|
|
||||||
# Viminfo version
|
|
||||||
|1,4
|
|
||||||
|
|
||||||
# 'encoding' dans lequel ce fichier a été écrit
|
|
||||||
*encoding=utf-8
|
|
||||||
|
|
||||||
|
|
||||||
# hlsearch on (H) or off (h):
|
|
||||||
~h
|
|
||||||
# Historique ligne de commande (chronologie décroissante) :
|
|
||||||
:q!
|
|
||||||
|2,0,1703236388,,"q!"
|
|
||||||
:x
|
|
||||||
|2,0,1703236381,,"x"
|
|
||||||
:x!
|
|
||||||
|2,0,1703236221,,"x!"
|
|
||||||
|
|
||||||
# Historique chaîne de recherche (chronologie décroissante) :
|
|
||||||
|
|
||||||
# Historique expression (chronologie décroissante) :
|
|
||||||
|
|
||||||
# Historique ligne de saisie (chronologie décroissante) :
|
|
||||||
|
|
||||||
# Historique Ligne de débogage (chronologie décroissante) :
|
|
||||||
|
|
||||||
# Registres :
|
|
||||||
""1 LINE 0
|
|
||||||
connection: local
|
|
||||||
|3,1,1,1,1,0,1703236374," connection: local"
|
|
||||||
"2 LINE 0
|
|
||||||
hosts: localhost
|
|
||||||
|3,0,2,1,1,0,1703236374," hosts: localhost"
|
|
||||||
|
|
||||||
# Marques dans le fichier :
|
|
||||||
'0 1 2 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,48,1,2,1703236388,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'1 1 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,49,1,9,1703236339,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'2 9 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,50,9,9,1703236221,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'3 9 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,51,9,9,1703236221,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'4 11 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,52,11,9,1703236221,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'5 11 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,53,11,9,1703236221,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'6 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,54,1,13,1703236013,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'7 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,55,1,13,1703236013,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'8 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,56,1,13,1703236013,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
'9 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,57,1,13,1703236013,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
|
|
||||||
# Liste de sauts (le plus récent en premier) :
|
|
||||||
-' 1 2 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,1,2,1703236388,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 1 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,1,9,1703236339,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 9 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,9,9,1703236318,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 11 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,11,9,1703236318,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 11 9 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,11,9,1703236221,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,1,13,1703236018,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
-' 1 13 ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
|4,39,1,13,1703236013,"~/tools/ansible/gsb2024/s-mon.yml"
|
|
||||||
|
|
||||||
# Historique des marques dans les fichiers (les plus récentes en premier) :
|
|
||||||
|
|
||||||
> ~/tools/ansible/gsb2024/s-mon.yml
|
|
||||||
* 1703236386 0
|
|
||||||
" 1 2
|
|
||||||
^ 9 10
|
|
||||||
. 2 0
|
|
||||||
+ 10 0
|
|
||||||
+ 2 0
|
|
@@ -14,15 +14,15 @@ dir=/root/tools/ansible
|
|||||||
|
|
||||||
cd "${dir}" || exit 1
|
cd "${dir}" || exit 1
|
||||||
|
|
||||||
hostname > hosts
|
|
||||||
if [[ $# == 1 ]] ; then
|
if [[ $# == 1 ]] ; then
|
||||||
opt=$1
|
opt=$1
|
||||||
fi
|
fi
|
||||||
if [[ "${opt}" == '-l' ]] ; then
|
if [[ "${opt}" == '-l' ]] ; then
|
||||||
cd "${dir}/${prj}" || exit 2
|
cd "${dir}/${prj}" || exit 2
|
||||||
|
echo "Execution locale ...."
|
||||||
ansible-playbook -i localhost, -c local "$(hostname).yml"
|
ansible-playbook -i localhost, -c local "$(hostname).yml"
|
||||||
else
|
else
|
||||||
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
|
ansible-pull -i "$(hostname)," -U "${UREP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
16
pull-config
16
pull-config
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
dir=/root/tools/ansible
|
||||||
|
prj=gsb2024
|
||||||
|
opt=""
|
||||||
|
|
||||||
if [ -z ${UREP+x} ]; then
|
if [ -z ${UREP+x} ]; then
|
||||||
UREP=https://gitea.lyc-lecastel.fr/gsb/gsb2024.git
|
UREP=https://gitea.lyc-lecastel.fr/gsb/gsb2024.git
|
||||||
fi
|
fi
|
||||||
@@ -10,7 +14,15 @@ dir=/root/tools/ansible
|
|||||||
|
|
||||||
cd "${dir}" || exit 1
|
cd "${dir}" || exit 1
|
||||||
|
|
||||||
hostname > hosts
|
if [[ $# == 1 ]] ; then
|
||||||
ansible-pull -i "${dir}/hosts" -C main -U "${UREP}"
|
opt=$1
|
||||||
|
fi
|
||||||
|
if [[ "${opt}" == '-l' ]] ; then
|
||||||
|
cd "${dir}/${prj}" || exit 2
|
||||||
|
echo "Execution locale ...."
|
||||||
|
ansible-playbook -i localhost, -c local "$(hostname).yml"
|
||||||
|
else
|
||||||
|
ansible-pull -i "$(hostname)," -U "${UREP}"
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@@ -120,7 +120,7 @@ subnet 172.16.65.0 netmask 255.255.255.0 {
|
|||||||
#DHCP pour le réseau USER
|
#DHCP pour le réseau USER
|
||||||
|
|
||||||
subnet 172.16.64.0 netmask 255.255.255.0 {
|
subnet 172.16.64.0 netmask 255.255.255.0 {
|
||||||
range 172.16.64.20 172.16.64.120;
|
range 172.16.64.100 172.16.64.150;
|
||||||
option domain-name-servers 172.16.0.1 ;
|
option domain-name-servers 172.16.0.1 ;
|
||||||
option routers 172.16.64.254;
|
option routers 172.16.64.254;
|
||||||
option broadcast-address 172.16.64.255;
|
option broadcast-address 172.16.64.255;
|
||||||
|
46
roles/fog/files/.fogsettings.single-if
Normal file
46
roles/fog/files/.fogsettings.single-if
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
## Start of FOG Settings
|
||||||
|
## Created by the FOG Installer
|
||||||
|
## Find more information about this file in the FOG Project wiki:
|
||||||
|
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
||||||
|
## Version: 1.5.10
|
||||||
|
## Install time: mar. 16 janv. 2024 15:27:57
|
||||||
|
ipaddress='192.168.99.100'
|
||||||
|
copybackold='0'
|
||||||
|
interface='enp0s3'
|
||||||
|
submask='255.255.255.0'
|
||||||
|
hostname='s-fog.gsb.lan'
|
||||||
|
routeraddress='192.168.99.99'
|
||||||
|
plainrouter='192.168.99.99'
|
||||||
|
dnsaddress='192.168.99.99'
|
||||||
|
username='fogproject'
|
||||||
|
password='zbSw#FaGPS7O1bJ5tpfj'
|
||||||
|
osid='2'
|
||||||
|
osname='Debian'
|
||||||
|
dodhcp='Y'
|
||||||
|
bldhcp='0'
|
||||||
|
dhcpd='isc-dhcp-server'
|
||||||
|
blexports='1'
|
||||||
|
installtype='N'
|
||||||
|
snmysqluser='fogmaster'
|
||||||
|
snmysqlpass='cbZjO*gCONbbldV4a6l1'
|
||||||
|
snmysqlhost='localhost'
|
||||||
|
mysqldbname='fog'
|
||||||
|
installlang='0'
|
||||||
|
storageLocation='/images'
|
||||||
|
fogupdateloaded=1
|
||||||
|
docroot='/var/www/html/'
|
||||||
|
webroot='/fog/'
|
||||||
|
caCreated='yes'
|
||||||
|
httpproto='http'
|
||||||
|
startrange=''
|
||||||
|
endrange=''
|
||||||
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip htmldoc isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-json php-ldap php-mbstring php-mysql tar tftpd-hpa tftp-hpa unzip vsftpd wget zlib1g'
|
||||||
|
noTftpBuild=''
|
||||||
|
tftpAdvOpts=''
|
||||||
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
|
backupPath='/home/'
|
||||||
|
armsupport=''
|
||||||
|
php_ver='7.4'
|
||||||
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
|
sendreports='Y'
|
||||||
|
## End of FOG Settings
|
@@ -3,18 +3,17 @@
|
|||||||
## Find more information about this file in the FOG Project wiki:
|
## Find more information about this file in the FOG Project wiki:
|
||||||
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
||||||
## Version: 1.5.10
|
## Version: 1.5.10
|
||||||
## Install time: jeu. 11 janv. 2024
|
## Install time: Mon Jan 15 23:16:31 2024
|
||||||
## Install time: jeu. 11 janv. 2024 11:41:05
|
ipaddress='172.16.0.8'
|
||||||
ipaddress='172.16.64.16'
|
|
||||||
copybackold='0'
|
copybackold='0'
|
||||||
interface='enp0s9'
|
interface='eth2'
|
||||||
submask='255.255.255.0'
|
submask='255.255.255.0'
|
||||||
hostname='s-fog.gsb.lan'
|
hostname='s-fog.gsb.lan'
|
||||||
routeraddress='172.16.64.254'
|
routeraddress='172.16.64.254'
|
||||||
plainrouter='172.16.64.254'
|
plainrouter='172.16.64.254'
|
||||||
dnsaddress='172.16.0.1'
|
dnsaddress='172.16.0.1'
|
||||||
username='fogproject'
|
username='fogproject'
|
||||||
password='/7ElC1OHrP47EN2w59xl'
|
password='0lEyBKxcrQxseHLB#Cbg'
|
||||||
osid='2'
|
osid='2'
|
||||||
osname='Debian'
|
osname='Debian'
|
||||||
dodhcp='y'
|
dodhcp='y'
|
||||||
@@ -23,27 +22,26 @@ dhcpd='isc-dhcp-server'
|
|||||||
blexports='1'
|
blexports='1'
|
||||||
installtype='N'
|
installtype='N'
|
||||||
snmysqluser='fogmaster'
|
snmysqluser='fogmaster'
|
||||||
snmysqlpass='HHO5vSGqFiHE_9d2lja3'
|
snmysqlpass='DQG@4PU31F9vOE4bX6V2'
|
||||||
snmysqlhost='localhost'
|
snmysqlhost='localhost'
|
||||||
mysqldbname='fog'
|
mysqldbname='fog'
|
||||||
installlang='1'
|
installlang='1'
|
||||||
storageLocation='/images'
|
storageLocation='/images'
|
||||||
fogupdateloaded=1
|
fogupdateloaded=1
|
||||||
docroot='/var/www/'
|
docroot='/var/www/html/'
|
||||||
webroot='/fog/'
|
webroot='/fog/'
|
||||||
caCreated='yes'
|
caCreated='yes'
|
||||||
httpproto='https'
|
httpproto='https'
|
||||||
startrange='172.16.64.10'
|
startrange='172.16.64.120'
|
||||||
endrange='172.16.64.254'
|
endrange='172.16.64.140'
|
||||||
#bootfilename='undionly.kpxe'
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftp-hpa tftpd-hpa unzip vsftpd wget zlib1g'
|
||||||
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftpd-hpa tftp-hpa unzip vsftpd wget zlib1g'
|
|
||||||
noTftpBuild=''
|
noTftpBuild=''
|
||||||
tftpAdvOpts=''
|
tftpAdvOpts=''
|
||||||
sslpath='/opt/fog/snapins/ssl/'
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
backupPath='/home/'
|
backupPath='/home/'
|
||||||
armsupport='0'
|
armsupport='0'
|
||||||
php_ver='7.4'
|
php_ver='7.4'
|
||||||
#php_verAdds='-7.4'
|
|
||||||
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
sendreports='Y'
|
sendreports='N'
|
||||||
## End of FOG Settings
|
## End of FOG Settings
|
||||||
|
|
||||||
|
49
roles/fog/files/fogsettings.old
Normal file
49
roles/fog/files/fogsettings.old
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
## Start of FOG Settings
|
||||||
|
## Created by the FOG Installer
|
||||||
|
## Find more information about this file in the FOG Project wiki:
|
||||||
|
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
||||||
|
## Version: 1.5.10
|
||||||
|
## Install time: jeu. 11 janv. 2024
|
||||||
|
## Install time: jeu. 11 janv. 2024 11:41:05
|
||||||
|
ipaddress='172.16.64.16'
|
||||||
|
copybackold='0'
|
||||||
|
interface='enp0s9'
|
||||||
|
submask='255.255.255.0'
|
||||||
|
hostname='s-fog.gsb.lan'
|
||||||
|
routeraddress='172.16.64.254'
|
||||||
|
plainrouter='172.16.64.254'
|
||||||
|
dnsaddress='172.16.0.1'
|
||||||
|
username='fogproject'
|
||||||
|
password='/7ElC1OHrP47EN2w59xl'
|
||||||
|
osid='2'
|
||||||
|
osname='Debian'
|
||||||
|
dodhcp='y'
|
||||||
|
bldhcp='1'
|
||||||
|
dhcpd='isc-dhcp-server'
|
||||||
|
blexports='1'
|
||||||
|
installtype='N'
|
||||||
|
snmysqluser='fogmaster'
|
||||||
|
snmysqlpass='HHO5vSGqFiHE_9d2lja3'
|
||||||
|
snmysqlhost='localhost'
|
||||||
|
mysqldbname='fog'
|
||||||
|
installlang='1'
|
||||||
|
storageLocation='/images'
|
||||||
|
fogupdateloaded=1
|
||||||
|
docroot='/var/www/'
|
||||||
|
webroot='/fog/'
|
||||||
|
caCreated='yes'
|
||||||
|
httpproto='https'
|
||||||
|
startrange='172.16.64.10'
|
||||||
|
endrange='172.16.64.254'
|
||||||
|
#bootfilename='undionly.kpxe'
|
||||||
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftpd-hpa tftp-hpa unzip vsftpd wget zlib1g'
|
||||||
|
noTftpBuild=''
|
||||||
|
tftpAdvOpts=''
|
||||||
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
|
backupPath='/home/'
|
||||||
|
armsupport='0'
|
||||||
|
php_ver='7.4'
|
||||||
|
#php_verAdds='-7.4'
|
||||||
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
|
sendreports='Y'
|
||||||
|
## End of FOG Settings
|
51
roles/fog/files/fogsettings1
Normal file
51
roles/fog/files/fogsettings1
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
## Start of FOG Settings
|
||||||
|
## Created by the FOG Installer
|
||||||
|
## Find more information about this file in the FOG Project wiki:
|
||||||
|
## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings
|
||||||
|
## Version: 1.5.10
|
||||||
|
## Install time: Mon Jan 15 23:16:31 2024
|
||||||
|
ipaddress='192.168.56.10'
|
||||||
|
copybackold='0'
|
||||||
|
interface='eth2'
|
||||||
|
submask='255.255.255.0'
|
||||||
|
hostname='fog'
|
||||||
|
routeraddress='192.168.1.1'
|
||||||
|
plainrouter='192.168.1.1'
|
||||||
|
dnsaddress='192.168.1.1'
|
||||||
|
username='fogproject'
|
||||||
|
password='0lEyBKxcrQxseHLB#Cbg'
|
||||||
|
osid='2'
|
||||||
|
osname='Debian'
|
||||||
|
dodhcp='y'
|
||||||
|
bldhcp='1'
|
||||||
|
dhcpd='isc-dhcp-server'
|
||||||
|
blexports='1'
|
||||||
|
installtype='N'
|
||||||
|
snmysqluser='fogmaster'
|
||||||
|
snmysqlpass='DQG@4PU31F9vOE4bX6V2'
|
||||||
|
snmysqlhost='localhost'
|
||||||
|
mysqldbname='fog'
|
||||||
|
installlang='1'
|
||||||
|
storageLocation='/images'
|
||||||
|
fogupdateloaded=1
|
||||||
|
docroot='/var/www/html/'
|
||||||
|
webroot='/fog/'
|
||||||
|
caCreated='yes'
|
||||||
|
httpproto='https'
|
||||||
|
startrange='192.168.56.10'
|
||||||
|
endrange='192.168.56.254'
|
||||||
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gettext git gzip htmldoc i
|
||||||
|
sc-dhcp-server isolinux lftp libapache2-mod-php libc6 libcurl4 liblzma-dev m4 mariadb-client mari
|
||||||
|
adb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php
|
||||||
|
-gd php-intl php-json php-ldap php-mbstring php-mysql tar tftp-hpa tftpd-hpa unzip vsftpd wget zl
|
||||||
|
ib1g '
|
||||||
|
noTftpBuild=''
|
||||||
|
tftpAdvOpts=''
|
||||||
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
|
backupPath='/home/'
|
||||||
|
armsupport='0'
|
||||||
|
php_ver='7.4'
|
||||||
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
|
sendreports='N'
|
||||||
|
## End of FOG Settings
|
||||||
|
|
@@ -42,8 +42,8 @@
|
|||||||
src: "/tmp/{{ depl_fog }}"
|
src: "/tmp/{{ depl_fog }}"
|
||||||
dest: "/tmp/"
|
dest: "/tmp/"
|
||||||
|
|
||||||
- name: Exécution du script d'installation Fog
|
#- name: Exécution du script d'installation Fog
|
||||||
ansible.builtin.shell: sudo bash /tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /tmp/fogsettings -y
|
# ansible.builtin.shell: sudo bash /tmp/fogproject-1.5.10/bin/installfog.sh --recreate-keys -f /tmp/fogsettings -y
|
||||||
args:
|
# args:
|
||||||
chdir: "/tmp/fogproject-1.5.10/"
|
# chdir: "/tmp/fogproject-1.5.10/"
|
||||||
|
|
||||||
|
14
roles/kea/README.md
Normal file
14
roles/kea/README.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Rôle Kea
|
||||||
|
***
|
||||||
|
Rôle du Kea pour la haute disponibilité dhcp
|
||||||
|
|
||||||
|
## Tables des matières
|
||||||
|
1. [Que fait le rôle Kea ?]
|
||||||
|
|
||||||
|
|
||||||
|
## Que fait le rôle Kea ?
|
||||||
|
Il permet de configurer les serveur kea en mode haute disponibilité.
|
||||||
|
|
||||||
|
### Installation et configuration de kea
|
||||||
|
|
||||||
|
Le rôle kea va installer les packets kea dhcp4, hook, admin une fois les packets installer. Nous allons configurer les 2 serveurs kea pour qu'il distribut les ip de n-user et soit en haute disponibilité.
|
8
roles/kea/default/main.yml
Normal file
8
roles/kea/default/main.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#variable kea
|
||||||
|
kea_ver: "2.4.1"
|
||||||
|
kea_dbname: ""
|
||||||
|
kea_dbuser: ""
|
||||||
|
kea_dbpasswd: ""
|
||||||
|
kea_dhcp4_dir: "/etc/kea/kea-dhcp4.conf"
|
||||||
|
kea_ctrl_dir: "/etc/kea/kea-ctrl-agent.conf"
|
||||||
|
|
5
roles/kea/handlers/main.yml
Normal file
5
roles/kea/handlers/main.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
- name: restart zabbix agent
|
||||||
|
service:
|
||||||
|
name: zabbix-agent
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
65
roles/kea/tasks/main.yml
Normal file
65
roles/kea/tasks/main.yml
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
- name: installation des dépendances
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- liblog4cplus-2.0.5
|
||||||
|
- libmariadb3
|
||||||
|
- libpq5
|
||||||
|
- mariadb-common
|
||||||
|
- mysql-common
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: telechargemement du paquet isc-kea-common
|
||||||
|
get_url:
|
||||||
|
url: "https://dl.cloudsmith.io/public/isc/kea-2-4/deb/debian/pool/bookworm/main/i/is/isc-kea-common_2.4.1-isc20231123184533/isc-kea-common_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
dest: "/tmp"
|
||||||
|
|
||||||
|
- name: telechargement du paquet isc-kea-dhcp4
|
||||||
|
get_url:
|
||||||
|
url: "https://dl.cloudsmith.io/public/isc/kea-2-4/deb/debian/pool/bookworm/main/i/is/isc-kea-dhcp4_2.4.1-isc20231123184533/isc-kea-dhcp4_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
dest: "/tmp"
|
||||||
|
|
||||||
|
- name: telechargement du paquet isc-kea-ctrl-agent
|
||||||
|
get_url:
|
||||||
|
url: "https://dl.cloudsmith.io/public/isc/kea-2-4/deb/debian/pool/bookworm/main/i/is/isc-kea-ctrl-agent_2.4.1-isc20231123184533/isc-kea-ctrl-agent_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
dest: "/tmp"
|
||||||
|
|
||||||
|
- name: telechargement du paquet isc-kea-hooks
|
||||||
|
get_url:
|
||||||
|
url: "https://dl.cloudsmith.io/public/isc/kea-2-4/deb/debian/pool/bookworm/main/i/is/isc-kea-hooks_2.4.1-isc20231123184533/isc-kea-hooks_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
dest: "/tmp"
|
||||||
|
- name: Update apt
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Installation paquet isc-kea-common
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-common_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Installation isc-kea-dhcp4
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-dhcp4_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Installation isc-kea-ctrl-agent
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-ctrl-agent_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Installation isc-kea-ctrl-agent
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-ctrl-agent_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Installation isc-kea-hooks
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-ctrl-agent_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Installation isc-kea-hooks
|
||||||
|
apt:
|
||||||
|
deb: "/tmp/isc-kea-ctrl-agent_2.4.1-isc20231123184533_amd64.deb"
|
||||||
|
state: present
|
@@ -9,6 +9,6 @@
|
|||||||
# - ssh-cli
|
# - ssh-cli
|
||||||
# - snmp-agent
|
# - snmp-agent
|
||||||
# - syslog-cli
|
# - syslog-cli
|
||||||
# - fog
|
- fog
|
||||||
#- - journald-snd
|
#- - journald-snd
|
||||||
- post
|
#- post
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Zabbix
|
- name: Zabbix
|
||||||
hosts: all
|
hosts: localhost
|
||||||
# become: yes
|
become: yes
|
||||||
# become_method: sudo
|
become_method: sudo
|
||||||
# become_user: root
|
# become_user: root
|
||||||
# vars:
|
# vars:
|
||||||
# access: "Restricted Nagios4 Access"
|
# access: "Restricted Nagios4 Access"
|
||||||
|
@@ -102,6 +102,22 @@ elseif ($args[0] -eq "s-fog") {
|
|||||||
create_if $args[0] "int" 3 "n-user"
|
create_if $args[0] "int" 3 "n-user"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elseif ($args[0] -eq "s-kea1") {
|
||||||
|
|
||||||
|
create_vm $args[0]
|
||||||
|
create_if $args[0] "int" 1 "n-adm"
|
||||||
|
create_if $args[0] "int" 2 "n-infra"
|
||||||
|
create_if $args[0] "int" 3 "n-user"
|
||||||
|
}
|
||||||
|
|
||||||
|
elseif ($args[0] -eq "s-kea2") {
|
||||||
|
|
||||||
|
create_vm $args[0]
|
||||||
|
create_if $args[0] "int" 1 "n-adm"
|
||||||
|
create_if $args[0] "int" 2 "n-infra"
|
||||||
|
create_if $args[0] "int" 3 "n-user"
|
||||||
|
}
|
||||||
|
|
||||||
elseif ($args[0] -eq "s-agence") {
|
elseif ($args[0] -eq "s-agence") {
|
||||||
|
|
||||||
create_vm $args[0]
|
create_vm $args[0]
|
||||||
|
Reference in New Issue
Block a user