forked from gadmin/gsb2023
fog maj
This commit is contained in:
parent
33b544f465
commit
016d201057
11
roles/fog/README.md
Normal file
11
roles/fog/README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Fog
|
||||||
|
Ce rôle permet l'installation et la modification de Fog.
|
||||||
|
|
||||||
|
## Fog, c'est quoi ?
|
||||||
|
|
||||||
|
Fog permet le déploiement d'images disque tel que Windows ou bien Linux en utilisant PXE (Preboot Execution Environment).
|
||||||
|
|
||||||
|
## Comment l'installer ?
|
||||||
|
|
||||||
|
Avant toute chose, lancer le fichier goss de s-fog ( présent dans gsb2023/goss/s-fog.yaml ) pour vérifier que la configuration réseau est correct et opérationel. Une fois l'installation principal effectué, il faut lancé le playbook ansible s-fog.yaml.
|
||||||
|
Il faudra se rendre dans le dossier **fog** pour lancer le script **installfog.sh** ( fog/bin/ ). La configuration sera déjà établi via le fichier **.fogsettings**
|
46
roles/fog/files/fogsettings
Normal file
46
roles/fog/files/fogsettings
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.9
|
||||||
|
## Install time: jeu. 26 janv. 2023 11:41:05
|
||||||
|
ipaddress='172.16.64.16'
|
||||||
|
copybackold='0'
|
||||||
|
interface='enp0s9'
|
||||||
|
submask='255.255.255.0'
|
||||||
|
hostname='s-fog.gsb.lan'
|
||||||
|
routeraddress='192.168.99.99'
|
||||||
|
plainrouter='192.168.99.99'
|
||||||
|
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='0'
|
||||||
|
storageLocation='/images'
|
||||||
|
fogupdateloaded=1
|
||||||
|
docroot='/var/www/html/'
|
||||||
|
webroot='/fog/'
|
||||||
|
caCreated='yes'
|
||||||
|
httpproto='http'
|
||||||
|
startrange='172.16.64.10'
|
||||||
|
endrange='172.16.64.254'
|
||||||
|
bootfilename='undionly.kpxe'
|
||||||
|
packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php7.4 libc6 libcurl4 li>
|
||||||
|
noTftpBuild=''
|
||||||
|
sslpath='/opt/fog/snapins/ssl/'
|
||||||
|
backupPath='/home/'
|
||||||
|
armsupport='0'
|
||||||
|
php_ver='7.4'
|
||||||
|
php_verAdds='-7.4'
|
||||||
|
sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key'
|
||||||
|
## End of FOG Settings
|
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
- name: creation d'un repertoire fog
|
||||||
|
file:
|
||||||
|
path: /root/tools/fog
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: recuperation de l'archive d'installation fog sur git
|
- name: recuperation de l'archive d'installation fog sur git
|
||||||
git:
|
git:
|
||||||
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
|
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
|
||||||
dest: /root/tools/fog/
|
dest: /root/tools/fog/
|
||||||
clone: yes
|
clone: yes
|
||||||
update: yes
|
update: yes
|
||||||
force: yes
|
|
||||||
|
|
||||||
- name: Modification fichier bash (desac UDPCast)
|
- name: Modification fichier bash (desac UDPCast)
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
@ -13,3 +17,10 @@
|
|||||||
regexp: '^configureUDPCast\(\).*'
|
regexp: '^configureUDPCast\(\).*'
|
||||||
line: "configureUDPCast() {\nreturn"
|
line: "configureUDPCast() {\nreturn"
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
|
- name: fichier config fogsettings
|
||||||
|
command: "cp /root/tools/ansible/roles/fog/files/fogsettings /opt/fog/"
|
||||||
|
|
||||||
|
- name: fichier fogsettings en .fogsettings
|
||||||
|
command: "mv /opt/fog/fogsettings /opt/fog/.fogsettings"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user