Set system locale and timezone

Configure the system locale and timezone. For a full list of keys, refer to the locale module and the timezone module schema.

Set the system locale

By default, cloud-init uses the locale specified by the datasource.

Set the locale directly

1#cloud-config
2locale: ar_AE

Set the locale via config file

This example sets the locale to fr_CA in /etc/alternate_path/locale.

1#cloud-config
2locale: fr_CA
3locale_configfile: /etc/alternate_path/locale

Set the system timezone

1#cloud-config
2timezone: US/Eastern