Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud-init: Added 'vyos-install' module documentation #1185

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions docs/automation/cloud-init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,27 @@
Cloud-config modules
********************

In VyOS, by default, enabled only two modules:
In VyOS, by default, enabled three modules:

* ``write_files`` - this module allows to insert any files into the filesystem
before the first boot, for example, pre-generated encryption keys,
certificates, or even a whole ``config.boot`` file.
* ``vyos_userdata`` - the module accepts a list of CLI configuration commands in
a ``vyos_config_commands`` section, which gives an easy way to configure the
system during deployment.
* ``vyos_install`` - this module allows to install VyOS without human intervention.

Check warning on line 55 in docs/automation/cloud-init.rst

View workflow job for this annotation

GitHub Actions / lint

Line too long: len=83

************************
cloud-config file format
************************

A cloud-config document is written in YAML. The file must begin
with ``#cloud-config`` line. The key used to designate a VyOS configuration
with ``#cloud-config`` line.

************************
Module vyos_userdata
************************
The key used to designate a VyOS configuration
is ``vyos_config_commands``. What follows is VyOS configuration using
the "set-style" syntax. Both "set" and "delete" commands are supported.

Expand Down Expand Up @@ -88,6 +94,28 @@
- set interfaces ethernet eth1 address '192.0.2.247/24'
- set protocols static route 198.51.100.0/24 next-hop '192.0.2.1'

************************
Module vyos_install
************************
This module allows to install VyOS without human intervention.
It will be useful for the installation via a network like PXE or USB flash install.

Check warning on line 101 in docs/automation/cloud-init.rst

View workflow job for this annotation

GitHub Actions / lint

Line too long: len=83
After network boot or USB drive boot, this module runs automatic system installation with

Check warning on line 102 in docs/automation/cloud-init.rst

View workflow job for this annotation

GitHub Actions / lint

Line too long: len=89
predefined grub parameters.
The next possible option can be used.

.. code-block:: yaml

#cloud-config
vyos_install:
activated: true # true - enable installer, false - disable. Default: false
post_reboot: true # true - reboot after installation, false - do not reboot. Default: false
ci_disable: true # true - disable cloud-init after installation, false - do not disable. Default: false
boot_params:
console_type: serial # type of console: kvm, serial. Default: kvm
serial_console_num: 1 # serial console number. Default: 0
serial_console_speed: 115200 # serial console speed. Default: 9600
cmdline_extra: nosmt mitigations=off # add extra parameters for kernel cmdline

*************************
System Defaults/Fallbacks
*************************
Expand Down
Loading