autoprovision: Install dch-autoprovision RPM
infra/kickstart/pipeline/head This commit looks good
Details
infra/kickstart/pipeline/head This commit looks good
Details
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.dev/autoprovision/rpm
parent
d8118e0fce
commit
0f091f9dfe
|
@ -1,16 +1,7 @@
|
||||||
|
%packages
|
||||||
|
dch-autoprovision
|
||||||
|
%end
|
||||||
|
|
||||||
%post
|
%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
|
systemctl enable --no-reload notify-online.service
|
||||||
%end
|
%end
|
||||||
|
|
Loading…
Reference in New Issue