Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# 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/plain
Expires
Mon, Nov 25, 16:10 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260502
Default Alt Text
init.sls (1 KB)

Event Timeline