mirror of
https://github.com/clearlinux/micro-config-drive.git
synced 2026-09-07 06:04:32 +00:00
Instead of keep duplicating existing code, we can make this program a little bit more versatile and cover all 3 use cases and add some extensibility for further additions. A static table describes what needs fetching and from where. The rest is logically the same and so the delta isn't so bad. We add tencent cloud support on top of this.
18 lines
422 B
Plaintext
18 lines
422 B
Plaintext
[Unit]
|
|
Description=micro-config-drive job for AWS
|
|
After=network.target systemd-networkd.service
|
|
Wants=local-fs.target sshd.service sshd-keygen.service
|
|
ConditionPathExists=!/var/lib/cloud/aws-user-data
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@prefix@/bin/ucd-data-fetch aws
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|