nouveau fichier : ap32-prod/journalisation/journald-dst.sh
nouveau fichier : ap32-prod/journalisation/journald-rcv.sh modifié : ap32-test/README.md nouveau fichier : ap32-test/journalisation/journald-dst.sh nouveau fichier : ap32-test/journalisation/journald-rcv.sh
This commit is contained in:
parent
0c83a5b3ea
commit
b5c15a2495
8
ap32-prod/journalisation/journald-dst.sh
Normal file
8
ap32-prod/journalisation/journald-dst.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y systemd-journal-remote
|
||||
rpl="s/^# URL=/URL=http:\/\/ap32-mon:19532/"
|
||||
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
|
||||
sudo systemctl enable --now systemd-journal-upload.service
|
||||
sudo systemctl restart systemd-journal-upload.service
|
13
ap32-prod/journalisation/journald-rcv.sh
Normal file
13
ap32-prod/journalisation/journald-rcv.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y systemd-journal-remote
|
||||
sudo systemctl enable --now systemd-journal-remote.socket
|
||||
sudo cp /lib/systemd/system/systemd-journal-remote.service /etc/systemd/system
|
||||
sudo sed -i 's/--listen-https=-3/--listen-http=-3/' /etc/systemd/system/systemd-journal-remote.service
|
||||
[[ -d /var/log/journal/remote ]] || sudo mkdir /var/log/journal/remote
|
||||
sudo chown systemd-journal-remote /var/log/journal/remote
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart systemd-journal-remote.service
|
||||
ss -lnt
|
||||
|
@ -1,2 +1,13 @@
|
||||
# sdis29-2
|
||||
### AP32-Test ###
|
||||
|
||||
* Création des serveurs ap31-prod et ap31-test via un clone intégral d'une template debian 12.7 KVM sur pxlab2.
|
||||
|
||||
## Matériel:
|
||||
|
||||
* Mémoire : 1G
|
||||
* Disques redimensionnés de 2Go a 10Go.
|
||||
* Définition de l'adresses IP et ajout des clé publique pour la connexion a la machine
|
||||
|
||||
** Paquets:
|
||||
|
||||
*
|
||||
|
8
ap32-test/journalisation/journald-dst.sh
Normal file
8
ap32-test/journalisation/journald-dst.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y systemd-journal-remote
|
||||
rpl="s/^# URL=/URL=http:\/\/ap32-mon:19532/"
|
||||
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
|
||||
sudo systemctl enable --now systemd-journal-upload.service
|
||||
sudo systemctl restart systemd-journal-upload.service
|
13
ap32-test/journalisation/journald-rcv.sh
Normal file
13
ap32-test/journalisation/journald-rcv.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
sudo timedatectl set-timezone Europe/Paris
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y systemd-journal-remote
|
||||
sudo systemctl enable --now systemd-journal-remote.socket
|
||||
sudo cp /lib/systemd/system/systemd-journal-remote.service /etc/systemd/system
|
||||
sudo sed -i 's/--listen-https=-3/--listen-http=-3/' /etc/systemd/system/systemd-journal-remote.service
|
||||
[[ -d /var/log/journal/remote ]] || sudo mkdir /var/log/journal/remote
|
||||
sudo chown systemd-journal-remote /var/log/journal/remote
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl restart systemd-journal-remote.service
|
||||
ss -lnt
|
||||
|
Loading…
x
Reference in New Issue
Block a user