Files
micro-config-drive/data/cloud-init.service.in
T
Julio Montes 89cbfb4313 add cloud-init-firstboot service
cloud-init-firstboot service will do initial tasks
  * create and set up default user
  * get and process metadata/userdata from datasources
  * disable root login
this service will run once (firstboot)

cloud-init service won't run at the first boot
but it will do at next boot times
	* verify/fix/resize/grow up partitions and filesystems
	* get and process userdata from datasources (TODO: optional)
2015-11-20 11:06:40 -06:00

20 lines
425 B
Plaintext

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