init.sls 444 B

123456789101112131415161718192021222324252627
  1. #
  2. # Configure locales
  3. #
  4. locales:
  5. pkg.installed
  6. # Workaround missing locale.present in our salt version
  7. /etc/locale.gen:
  8. file.managed:
  9. - source:
  10. - salt://locales/locale.gen.{{ grains.os }}.{{ grains.oscodename }}
  11. - salt://locales/locale.gen
  12. - require:
  13. - pkg: locales
  14. locale-gen:
  15. cmd.wait:
  16. - watch:
  17. - file: /etc/locale.gen
  18. en_US.UTF-8:
  19. locale.system:
  20. - require:
  21. - file: /etc/locale.gen