many things

This commit is contained in:
Chris Cowley 2024-08-04 16:16:53 +02:00
parent 18a08d623b
commit a7fad6c9c6
43 changed files with 1246 additions and 54 deletions

View file

@ -0,0 +1,19 @@
[Unit]
Description=Run K3s script
Wants = network-online.target
After = network-online.target
ConditionPathExists=/etc/rancher/k3s/config.yaml
ConditionPathExists=/opt/k3s-agent-install.sh
ConditionPathExists=!/opt/bin/k3s
[Service]
Type=forking
TimeoutStartSec=0
RemainAfterExit=yes
KillMode=process
Environment="K3S_TOKEN=secret_edgecluster_token"
Environment="INSTALL_K3S_EXEC=agent"
ExecStart=/usr/bin/sh -c "/opt/k3s-agent-install.sh"
[Install]
WantedBy=multi-user.target