mirror of
https://github.com/clearlinux/micro-config-drive.git
synced 2026-08-28 17:55:40 +00:00
1c97e18f07
cloud-init-pre-network: runs before network service. this service gets metadata from local datasources in order to configure network stuff before network service and configures the instance on its first booot cloud-init: runs after network service and will get userdata/metadata from datasources(local/network). This service fixes disk and filesystem add first-boot-setup and no-network options update documentation
20 lines
473 B
Plaintext
20 lines
473 B
Plaintext
[Unit]
|
|
Description=cloud-init job
|
|
After=local-fs.target cloud-init-pre-network.service
|
|
Before=sshd.service sshd-keygen.service
|
|
Requires=network.target
|
|
Wants=local-fs.target sshd.service sshd-keygen.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@prefix@/bin/cloud-init --fix-disk --user-data-once --metadata
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
PrivateTmp=yes
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|