Updated chosta.in (added rsync logging to log server).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 14 Nov 2024 16:09:59 +0000 (17:09 +0100)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 14 Nov 2024 16:09:59 +0000 (17:09 +0100)
sources/chosta.in/99_setupsystem.sh
sources/chosta.in/etc/logrotate.d/rsync [new file with mode: 0644]
sources/chosta.in/etc/rsyslog.d/remote.conf [new file with mode: 0644]

index 7624c693b1a6e79521733aeac489d738c6b74f9f..84cd45585cf44db855533dbfe0fec6a710ea214b 100755 (executable)
@@ -5,10 +5,29 @@ hostnamectl set-hostname chosta.in.useribm.hu
 timedatectl set-timezone Europe/Budapest
 
 dnf erase \
+    bluez \
+    deltarpm \
+    dhcp-client \
+    f2fs-tools \
+    firewalld \
+    firewalld-filesystem \
+    hunspell \
+    jq \
+    memstrack \
+    ModemManager-glib \
+    nano \
+    nilfs-utils \
+    ntfs-3g \
+    ntfs-3g-libs \
+    python3-firewall \
+    qrencode-libs \
     selinux-policy \
+    udftools \
+    unbound-anchor \
     zram-generator
 
 dnf install \
+    atop \
     chrony \
     cronie \
     git \
@@ -16,14 +35,21 @@ dnf install \
     lsof \
     lxc \
     lxc-templates \
+    lxcfs \
     mailx \
+    man-pages \
     postfix \
     rsyslog \
+    rsyslog-relp \
     screen \
+    speedtest-cli \
+    sysstat \
+    tar \
+    unzip \
     vim-enhanced \
-    wget2
+    wget2 \
+    zip
 
-systemctl disable firewalld.service
 systemctl disable lxc.service
 
 systemctl enable chronyd.service
@@ -40,7 +66,6 @@ systemctl start lxcfs.service
 systemctl start postfix.service
 systemctl start rsyslog.service
 
-systemctl stop firewalld.service
 systemctl stop lxc.service
 
 git config set --global user.name "Zoltán Felleg"
diff --git a/sources/chosta.in/etc/logrotate.d/rsync b/sources/chosta.in/etc/logrotate.d/rsync
new file mode 100644 (file)
index 0000000..370e4e5
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/rsync.log
+{
+    missingok
+    sharedscripts
+    postrotate
+        /usr/bin/systemctl reload rsyslog.service >/dev/null 2>&1 || true
+    endscript
+}
diff --git a/sources/chosta.in/etc/rsyslog.d/remote.conf b/sources/chosta.in/etc/rsyslog.d/remote.conf
new file mode 100644 (file)
index 0000000..b645851
--- /dev/null
@@ -0,0 +1,11 @@
+module(load="imfile")
+module(load="omrelp")
+
+input(type="imfile"
+      file="/var/log/rsync.log"
+      tag="rsync")
+
+if $syslogtag == "rsync" then {
+    action(type="omrelp" target="log.in.useribm.hu" port="2514")
+    stop
+}