summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/system-updates/etc
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/system-updates/etc')
-rwxr-xr-xsatellit_installer/static_files/system-updates/etc/cron.daily/tmpdelete.sh9
-rw-r--r--satellit_installer/static_files/system-updates/etc/locale.conf1
-rw-r--r--satellit_installer/static_files/system-updates/etc/sudoers.d/openslx-overrides1
-rw-r--r--satellit_installer/static_files/system-updates/etc/systemd/journald.conf.d/slx-overrides.conf6
-rw-r--r--satellit_installer/static_files/system-updates/etc/systemd/system.conf.d/10-openslx.conf3
5 files changed, 20 insertions, 0 deletions
diff --git a/satellit_installer/static_files/system-updates/etc/cron.daily/tmpdelete.sh b/satellit_installer/static_files/system-updates/etc/cron.daily/tmpdelete.sh
new file mode 100755
index 0000000..9e68658
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/etc/cron.daily/tmpdelete.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# This is a mini script called by a cronjob to delete bwlp-entries in /tmp
+# directory older ~2 days.
+find /tmp -mtime +2 -name "bwlp-*" -maxdepth 1 -exec rm -rf -- {} \; 2>/dev/null
+# Same for VM uploads
+[ -d /srv/openslx/nfs ] && find /srv/openslx/nfs -mtime +2 -type f -name "*.upload.partial" -exec rm -f -- {} \; 2>/dev/null
+# NFS silly renames
+[ -d /srv/openslx/nfs ] && find /srv/openslx/nfs -mtime +4 -type f -name ".nfs*" -exec rm -f -- {} \; 2>/dev/null
diff --git a/satellit_installer/static_files/system-updates/etc/locale.conf b/satellit_installer/static_files/system-updates/etc/locale.conf
new file mode 100644
index 0000000..f9c983c
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/etc/locale.conf
@@ -0,0 +1 @@
+LANG=C.UTF-8
diff --git a/satellit_installer/static_files/system-updates/etc/sudoers.d/openslx-overrides b/satellit_installer/static_files/system-updates/etc/sudoers.d/openslx-overrides
new file mode 100644
index 0000000..5cfa7d0
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/etc/sudoers.d/openslx-overrides
@@ -0,0 +1 @@
+bwlp ALL=(root) NOPASSWD: ALL
diff --git a/satellit_installer/static_files/system-updates/etc/systemd/journald.conf.d/slx-overrides.conf b/satellit_installer/static_files/system-updates/etc/systemd/journald.conf.d/slx-overrides.conf
new file mode 100644
index 0000000..05a33d2
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/etc/systemd/journald.conf.d/slx-overrides.conf
@@ -0,0 +1,6 @@
+[Journal]
+Storage=persistent
+SystemMaxUse=1G
+SystemKeepFree=1G
+RuntimeMaxUse=100M
+RuntimeKeepFree=100M
diff --git a/satellit_installer/static_files/system-updates/etc/systemd/system.conf.d/10-openslx.conf b/satellit_installer/static_files/system-updates/etc/systemd/system.conf.d/10-openslx.conf
new file mode 100644
index 0000000..0e40b02
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/etc/systemd/system.conf.d/10-openslx.conf
@@ -0,0 +1,3 @@
+[Manager]
+DefaultEnvironment=TZ=:/etc/localtime LANG=C.UTF-8
+RebootWatchdogSec=30