chore: order cloud-init config
All checks were successful
Renovate / renovate (push) Successful in 11s
Hetzner Cloud template / hetzner-cloud-template (push) Successful in 24s

This commit is contained in:
Peter 2023-12-21 16:14:23 +01:00
parent 2f54f2e4d0
commit 929efba70c
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -38,6 +38,28 @@ write_files:
permissions: "0755"
encoding: b64
content: ${init_script}
- path: /etc/systemd/system/coder-agent.service
permissions: "0644"
content: |
[Unit]
Description=Coder Agent
After=network-online.target
Wants=network-online.target
[Service]
User=${username}
ExecStart=/opt/coder/init
Environment=CODER_AGENT_TOKEN=${coder_agent_token}
Restart=always
RestartSec=10
TimeoutStopSec=90
KillMode=process
OOMScoreAdjust=-900
SyslogIdentifier=coder-agent
[Install]
WantedBy=multi-user.target
%{ if install_podman_setup ~}
- path: /etc/profile.d/podman.sh
permissions: "0644"
@ -66,28 +88,6 @@ write_files:
[Install]
WantedBy=multi-user.target
%{ endif ~}
- path: /etc/systemd/system/coder-agent.service
permissions: "0644"
content: |
[Unit]
Description=Coder Agent
After=network-online.target
Wants=network-online.target
[Service]
User=${username}
ExecStart=/opt/coder/init
Environment=CODER_AGENT_TOKEN=${coder_agent_token}
Restart=always
RestartSec=10
TimeoutStopSec=90
KillMode=process
OOMScoreAdjust=-900
SyslogIdentifier=coder-agent
[Install]
WantedBy=multi-user.target
%{ if remote_ide_setup == "code_server" ~}
- path: /home/${username}/.config/code-server/config.yaml
permissions: "0644"