mirror of
https://github.com/akpall/akpella.git
synced 2026-02-21 08:36:59 +00:00
Compare commits
5 Commits
ad49207f4f
...
5ceee60d7a
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ceee60d7a | |||
| ec119d6373 | |||
| aa8e794001 | |||
| 2b53cbdafe | |||
| 4aa09663d1 |
18
Makefile
18
Makefile
@@ -6,23 +6,23 @@ config.json: config.yaml
|
|||||||
< config.yaml > config.json
|
< config.yaml > config.json
|
||||||
|
|
||||||
reset: config.json
|
reset: config.json
|
||||||
if [ ! -f config.json ]; then \
|
if ! [[ -f config.json && -s config.json ]]; then \
|
||||||
echo "No config.json" && \
|
echo "No config.json" && \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
TEMPDIR=$$(ssh akpella "cd /tmp && mktemp -d") && \
|
ssh -o ControlMaster=auto -o ControlPath=/tmp/ssh_mux_%h_%p_%r -o ControlPersist=10s -fN akpella && \
|
||||||
scp config.json akpella:$${TEMPDIR} && \
|
TEMPDIR=$$(ssh -o ControlPath=/tmp/ssh_mux_%h_%p_%r akpella "cd /tmp && mktemp -d") && \
|
||||||
ssh akpella sudo flatcar-reset \
|
scp -o ControlPath=/tmp/ssh_mux_%h_%p_%r config.json akpella:$${TEMPDIR} && \
|
||||||
|
ssh -o ControlPath=/tmp/ssh_mux_%h_%p_%r akpella \
|
||||||
|
sudo flatcar-reset \
|
||||||
--ignition-file $${TEMPDIR}/config.json \
|
--ignition-file $${TEMPDIR}/config.json \
|
||||||
--keep-machine-id \
|
--keep-machine-id \
|
||||||
--keep-paths '/etc/ssh/ssh_host_.*' /var/log && \
|
--keep-paths '/etc/ssh/ssh_host_.*' /var/log && \
|
||||||
ssh akpella sudo systemctl reboot
|
ssh -o ControlPath=/tmp/ssh_mux_%h_%p_%r akpella \
|
||||||
|
sudo systemctl reboot && \
|
||||||
|
ssh -o ControlPath=/tmp/ssh_mux_%h_%p_%r -O exit akpella;
|
||||||
|
|
||||||
update:
|
update:
|
||||||
VER=$$(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt | grep FLATCAR_VERSION= | cut -d = -f 2) && \
|
VER=$$(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt | grep FLATCAR_VERSION= | cut -d = -f 2) && \
|
||||||
echo $${VER} && \
|
echo $${VER} && \
|
||||||
ssh akpella sudo flatcar-update -V $${VER} -A
|
ssh akpella sudo flatcar-update -V $${VER} -A
|
||||||
|
|
||||||
akpall-ignition.raw:
|
|
||||||
curl -Os https://github.com/akpall/sysext-bakery/blob/akpella/akpall-ignition.raw
|
|
||||||
.PHONY: akpall-ignition.raw
|
|
||||||
|
|||||||
@@ -31,3 +31,8 @@ storage:
|
|||||||
inline: |
|
inline: |
|
||||||
127.0.0.1 localhost akpella.lan
|
127.0.0.1 localhost akpella.lan
|
||||||
::1 localhost akpella.lan
|
::1 localhost akpella.lan
|
||||||
|
|
||||||
|
systemd:
|
||||||
|
units:
|
||||||
|
- name: systemd-sysupdate.timer
|
||||||
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user