Skip to content

Commit

Permalink
doc: add example for user-data
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Peterson444 committed Jul 26, 2024
1 parent b8b2629 commit f3c403d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion doc/reference/autoinstall-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1008,4 +1008,18 @@ user-data
* **default:** ``{}``
* **can be interactive:** no

Provide cloud-init user data, which will be merged with the user data the installer produces. If you supply this, you don't need to supply an :ref:`identity section <ai-identity>` (in that case, ensure you can log in to the installed system).
Provide cloud-init user data, which will be merged with the user data the installer produces. If you supply this, you don't need to supply an :ref:`identity section <ai-identity>` (in that case, ensure you can log in to the installed system). For more details on cloud-init user-data, see :doc:`cloud-init:reference/examples`.

The following user-data is approximately equivalent to what is generated by the example provided in the :ref:`identity section <ai-identity>`:

.. code-block:: yaml
autoinstall:
user-data:
users:
- name: ubuntu
gecos: 'Ubuntu User'
passwd: '$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1'
groups: adm, cdrom, dip, lxd, plugdev, sudo
shell: /bin/bash
lock_passwd: False

0 comments on commit f3c403d

Please sign in to comment.