Select Git revision
-
Jan Philipp Timme authoredJan Philipp Timme authored
locale.sls 610 B
{% from "hshbase/map.jinja" import hshbase with context %}
{% if grains['os'] in ('Debian', 'Ubuntu') and grains['oscodename'] != 'squeeze' %}
locales:
pkg.installed
hshbase_locale_system:
locale.present:
- name: {{ hshbase.locale.system }}
hshbase_locale_install_system:
locale.system:
- name: {{ hshbase.locale.system }}
- require:
- locale: hshbase_locale_system
{% for locale in hshbase.locale.present %}
hshbase_locale_{{ loop.index }}:
locale.present:
- name: {{ locale }}
{% endfor %}
{% elif grains['os'] == 'FreeBSD' %}
{# TODO: Should we do that? #}
{% endif %}