Chapter 12. Changing the system locale with cloud-init
You can configure the system locale with the locale module in cloud-init by adding the locale directive to your configuration.
Prerequisites
-
Depending on the requirements of your datasource, edit the
meta-datafile. You can also add the following directive to thecloud.cfgfile or thecloud.cfg.ddirectory.
Procedure
-
Add the
localedirective, specifying the location. The following sample sets thelocaletoja_JP(Japan) withUTF-8encoding.
#cloud-config
locale: ja_JP.UTF-8