kickstart/autoprovision.ks.j2

17 lines
493 B
Django/Jinja

%post
cat > /root/.ssh/authorized_keys <<EOF
expiry-time="$(date -d +1hour +%Y%m%d%H%M)",restrict,pty ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICoOO/ZYMxRgmyvqZwGN3NM5pHyh3NBdC7iZrXIopt93 Host Provisioner
EOF
cat > /usr/local/libexec/notify-online.sh <<'EOF'
{% include "notify-online.sh" %}
EOF
chmod +x /usr/local/libexec/notify-online.sh
cat > /etc/systemd/system/notify-online.service <<'EOF'
{% include "notify-online.service" %}
EOF
systemctl enable --no-reload notify-online.service
%end