Skip to content

Commit

Permalink
Update doc/tutorial/intro-to-autoinstall.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Smith <chad.smith@canonical.com>
  • Loading branch information
dbungert and blackboxsw committed Jul 7, 2023
1 parent c7e1fda commit ca09cf2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions doc/tutorial/intro-to-autoinstall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@ level.
Cloud-init and autoinstall interaction
======================================

While cloud-init may provide the autoinstall configuration to the
Ubuntu installer, it does not process the autoinstall itself.
Cloud-init runs in both the ephemeral system, during install, and in the target system during first boot. Cloud-init then becomes inert for every subsequent
reboot.

If cloud-init directives are intended to modify the ephemeral system, they
must appear at the top level of the cloud-config. If instead
cloud-init directives are intended to modify the system being installed, they
must appear under a :code:`user-data` section in :code:`autoinstall`.
While cloud-init may provide the autoinstall configuration to the
Ubuntu installer, it does not process the autoinstall directives
itself.

To modify the ephemeral system with cloud-init, any :external+cloud-init:ref:`#cloud-config module schema keys<modules>` can
be provided. If instead cloud-init directives are intended to modify the system
being installed, they must appear under a :code:`user-data:` section under
:code:`autoinstall:`.
.. code-block:: yaml
#cloud-config
Expand Down

0 comments on commit ca09cf2

Please sign in to comment.