Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/core/login/init.sls b/roles/core/login/init.sls
index aad97e8..9df4ae7 100644
--- a/roles/core/login/init.sls
+++ b/roles/core/login/init.sls
@@ -1,39 +1,51 @@
# -------------------------------------------------------------
# Set login capabilities
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2020-01-20
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% if grains['os'] == 'FreeBSD' %}
/etc/login.conf:
file.managed:
- source: salt://roles/core/login/files/login.conf
- mode: 644
compile_login_db:
cmd.run:
- name: cap_mkdb /etc/login.conf
- onchanges:
- file: /etc/login.conf
{% endif %}
# -------------------------------------------------------------
# Locales
#
# Each system should at least provide en_US.UTF-8.
#
+# Two locales strategies exist:
+# - install a package with all locales (Debian)
+# - install locales packages (RHEL)
+#
+# In the second case, we need to list all the locales we need.
# Any being is welcome to add any locale in this section.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if grains['os_family'] == 'RedHat' %}
locales_packages:
pkg.installed:
- pkgs:
- glibc-langpack-en
{% endif %}
+
+{% if grains['os_family'] == 'Debian' %}
+
+locales-all:
+ pkg.installed
+
+{% endif %}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 10:40 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260020
Default Alt Text
(1 KB)

Event Timeline