packer-hcloud/rocky-9/data/files/hcloud-ssh-keys.service

13 lines
262 B
SYSTEMD
Raw Normal View History

2022-09-08 13:01:32 +00:00
[Unit]
Description=Import hcloud root ssh keys
Requires=network-online.target
After=network-online.target
ConditionPathExists=!/root/.ssh/authorized_keys
[Service]
Type=oneshot
ExecStart=/usr/local/bin/hcloud-metadata keys
[Install]
WantedBy=multi-user.target