busybox
This commit is contained in:
@@ -159,11 +159,18 @@ storage:
|
||||
contents:
|
||||
source: "http://git.undercloud.local:3000/Undercloud/undercloud-infrastructure/raw/branch/main/k8s-binaries/remote-syslog"
|
||||
|
||||
- path: /opt/bin/remote-syslog
|
||||
- path: /opt/bin/busybox
|
||||
mode: 0755
|
||||
contents:
|
||||
source: "http://git.undercloud.local:3000/Undercloud/undercloud-infrastructure/raw/branch/main/k8s-binaries/busybox"
|
||||
|
||||
- path: /etc/systemd/journald.conf.d/10-forward-to-syslog.conf
|
||||
mode: 0644
|
||||
contents:
|
||||
inline: |
|
||||
[Journal]
|
||||
ForwardToSyslog=yes
|
||||
|
||||
- path: /etc/kubernetes/kubeadm-init.yaml
|
||||
mode: 0644
|
||||
contents:
|
||||
@@ -264,6 +271,23 @@ storage:
|
||||
|
||||
systemd:
|
||||
units:
|
||||
- name: syslog-forward.service
|
||||
enabled: true
|
||||
contents: |
|
||||
[Unit]
|
||||
Description=Forward journald to central syslog server
|
||||
Wants=network-online.target
|
||||
After=network-online.target systemd-journald.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/bin/busybox syslogd -n -R syslog.undercloud.local -P 514
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# --- Boot entrypoint: only this target is enabled at boot ---
|
||||
- name: undercloud-bootstrap.target
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user