-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Julio Montes
committed
Nov 20, 2015
1 parent
71d7ebe
commit 89cbfb4
Showing
5 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Unit] | ||
Description=Initial cloud-init job (firstboot) | ||
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=yes | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=@prefix@/bin/cloud-init --first-boot | ||
RemainAfterExit=yes | ||
TimeoutSec=0 | ||
|
||
# Output needs to appear in instance console output | ||
StandardOutput=journal+console | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters