Compare commits

..

3 Commits

Author SHA1 Message Date
050a4fdc7d maj scipt python wireguard 2024-01-19 10:33:38 +01:00
8568463dc7 goss s-itil pages web 2024-01-19 10:01:28 +01:00
d58d3ae8d7 actualisation test goss s-itil 2024-01-19 09:57:01 +01:00
2 changed files with 114 additions and 59 deletions

View File

@ -1,59 +1,87 @@
#package:
# systemd-journal-remote:
# installed: true
file: file:
/var/www/html/glpi: /etc/nginx/sites-enabled/default:
exists: true exists: false
mode: "0755" contents: []
owner: www-data /etc/nginx/sites-enabled/glpi:
group: www-data exists: true
filetype: directory mode: "0644"
owner: root
/var/www/html/glpicli: group: root
exists: true filetype: file
mode: "0775" contents: []
owner: www-data /var/www/html/glpi:
group: www-data exists: true
filetype: directory mode: "0755"
owner: www-data
/var/www/html/glpi/plugins: group: www-data
exists: true filetype: directory
mode: "0777" contents: []
filetype: directory /var/www/html/glpicli:
exists: true
/var/www/html/glpicli/GLPI-Agent-1.7-x64.msi: mode: "0775"
exists: true owner: www-data
#mode: "0777" group: www-data
filetype: file filetype: directory
contents: []
/var/www/html/index.nginx-debian.html: /var/www/html/glpicli/GLPI-Agent-1.7-x64.msi:
exists: true exists: true
mode: "0775" mode: "0644"
owner: www-data owner: root
group: www-data group: root
filetype: file filetype: file
service: contents: []
mariadb:
enabled: true
running: true
nginx:
enabled: true
running: true
zabbix-agent:
enable: true
running: true
systemd-journal-upload.service:
enabled: true
running: true
port: port:
tcp:10050: tcp:22:
listening: true listening: true
ip: ip:
- 0.0.0.0 - 0.0.0.0
tcp:10050: tcp:80:
listening: true listening: true
ip: ip:
- '::' - 0.0.0.0
tcp:3306:
listening: true
ip:
- 127.0.0.1
tcp:9000:
listening: true
ip:
- 127.0.0.1
tcp:10050:
listening: true
ip:
- 0.0.0.0
service:
mariadb.service:
enabled: true
running: true
nginx:
enabled: true
running: true
php8.2-fpm.service:
enabled: true
running: true
ssh:
enabled: true
running: true
systemd-journal-upload:
enabled: true
running: true
zabbix-agent:
enabled: true
running: true
http:
http://s-itil.gsb.lan/:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
username: glpi
password: glpi
http://s-itil.gsb.lan/glpicli:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []

View File

@ -1,5 +1,32 @@
#!/bin/bash !/bin/bash
#Ancien scipt 2023
#stoper le fw #stoper le fw
systemctl stop ferm #systemctl stop ferm
#ouverture du service web pour copie distante #ouverture du service web pour copie distante
#cd /root/confwg/ && python3 -m http.server 8000 &
#Script 2024
# Fonction pour arrêter le serveur web
stop_server() {
echo "Arrêt du serveur et démarrage de ferm..."
pkill -f "python3 -m http.server"
}
# Stopper le ferm
systemctl stop ferm
# Ouverture du service web pour copie distante
cd /root/confwg/ && python3 -m http.server 8000 & cd /root/confwg/ && python3 -m http.server 8000 &
echo "Ouverture du serveur"
# Timer pour récupéré le fichier avant de fermer le serveur python
sleep 120
#Appel de la fonction stop-serveur
stop_server