blob: 2941c17ef375c5527a4efe2f4bba0fdca1db9d8e [file] [log] [blame]
{%- from "linux/map.jinja" import system with context %}
{%- if system.enabled %}
{%- for locale_name, locale in system.locale.iteritems() %}
{%- if locale.get('enabled', True) %}
linux_locale_{{ locale_name }}:
locale.present:
- name: {{ locale_name }}
{%- if locale.get('default', False) %}
linux_locale_default:
locale.system:
- name: {{ locale_name }}
- require:
- locale: linux_locale_{{ locale_name }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- endif %}