| [Unit] | |
| Description=Initial cloud-init job (pre-networking) | |
| DefaultDependencies=no | |
| Wants=local-fs.target | |
| Wants=network-pre.target | |
| After=local-fs.target | |
| Conflicts=shutdown.target | |
| Before=NetworkManager.service | |
| Before=network-pre.target | |
| Before=shutdown.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/cloud-init init --local | |
| ExecStart=/bin/touch /run/cloud-init/network-config-ready | |
| RemainAfterExit=yes | |
| TimeoutSec=0 | |
| # Output needs to appear in instance console output | |
| StandardOutput=journal+console | |
| [Install] | |
| WantedBy=cloud-init.target |
| [Unit] | |
| Description=Initial cloud-init job (metadata service crawler) | |
| After=cloud-init-local.service network.service | |
| Before=network-online.target sshd.service sshd-keygen.service systemd-user-sessions.service | |
| Requires=network.service | |
| Wants=local-fs.target cloud-init-local.service sshd.service sshd-keygen.service | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/cloud-init init | |
| RemainAfterExit=yes | |
| TimeoutSec=0 | |
| # Output needs to appear in instance console output | |
| StandardOutput=journal+console | |
| [Install] | |
| WantedBy=cloud-init.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment