Files
micro-config-drive/data/cloud-init-pre-network.service.in
T
Julio Montes 1c97e18f07 Split cloud-init service
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
2016-04-13 15:53:25 -05:00

19 lines
460 B
Plaintext

[Unit]
Description=cloud-init pre-network job
After=local-fs.target
Before=cloud-init.service network.target systemd-networkd.service
Wants=local-fs.target sshd.service sshd-keygen.service
[Service]
Type=oneshot
ExecStart=@prefix@/bin/cloud-init --first-boot-setup --no-network --metadata
RemainAfterExit=yes
TimeoutSec=0
PrivateTmp=yes
# Output needs to appear in instance console output
StandardOutput=journal+console
[Install]
WantedBy=multi-user.target