Set keyboard layout

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

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 by setup-keymap. Model and options are ignored.

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