Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
484B

  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. {%- for locale_name, locale in system.locale.items() %}
  4. {%- if locale.get('enabled', True) %}
  5. linux_locale_{{ locale_name }}:
  6. locale.present:
  7. - name: {{ locale_name }}
  8. {%- if locale.get('default', False) %}
  9. linux_locale_default:
  10. locale.system:
  11. - name: {{ locale_name }}
  12. - require:
  13. - locale: linux_locale_{{ locale_name }}
  14. {%- endif %}
  15. {%- endif %}
  16. {%- endfor %}
  17. {%- endif %}