Compare commits

2 Commits

Author SHA1 Message Date
c96f3918b4 xxx
All checks were successful
infra/kickstart/pipeline/head This commit looks good
2025-08-14 14:01:42 -05:00
0f091f9dfe autoprovision: Install dch-autoprovision RPM
All checks were successful
infra/kickstart/pipeline/head This commit looks good
The `notify-online` script and corresponding systemd unit are now
available in an RPM.  This allowes them to be installed in different
scenarios, such as image builds, that do not use Anaconda/kickstart.
2025-08-14 10:13:38 -05:00

View File

@@ -1,16 +1,16 @@
%post %packages
cat > /root/.ssh/authorized_keys <<EOF dch-autoprovision
expiry-time="$(date -d +1hour +%Y%m%d%H%M)",restrict,pty ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICoOO/ZYMxRgmyvqZwGN3NM5pHyh3NBdC7iZrXIopt93 Host Provisioner %end
EOF
%post
cat > /usr/local/libexec/notify-online.sh <<'EOF' {
{% include "notify-online.sh" %} ls -la /root/.ssh
EOF chmod -R 700 /root/.ssh
chmod +x /usr/local/libexec/notify-online.sh cat /root/.ssh/authorized_keys
systemctl enable --no-reload notify-online.service
cat > /etc/systemd/system/notify-online.service <<'EOF' sed -i 's/.*ForwardToConsole.*/ForwardToConsole=yes/' /etc/systemd/journald.conf
{% include "notify-online.service" %} grep ForwardTo /etc/systemd/journald.conf
EOF passwd -d root
exit 0
systemctl enable --no-reload notify-online.service } > /dev/console
%end %end