Set keyboard layout - cloud-init 25.1.2 documentation (original) (raw)

View this page

Toggle table of contents sidebar

For a full list of keys, refer to the keyboard moduleschema.

Minimal example

Set the keyboard layout to “US”

1#cloud-config 2keyboard: 3 layout: us

Additional options

Set the specific keyboard layout, model, variant, and options.

1#cloud-config 2keyboard: 3 layout: de 4 model: pc105 5 variant: nodeadkeys 6 options: compose:rwin

Alpine Linux setup

For Alpine Linux, set specific keyboard layout and variant as used bysetup-keymap. Model and options are ignored.

1#cloud-config 2keyboard: 3 layout: gb 4 variant: gb-extd