Change-Id: I54bc92902137899834408732ab852fd96d3f5a53pull/102/head
"cs_CZ.UTF-8 UTF-8": | "cs_CZ.UTF-8 UTF-8": | ||||
enabled: true | enabled: true | ||||
Systemd settings: | |||||
.. code-block:: yaml | |||||
linux: | |||||
system: | |||||
... | |||||
systemd: | |||||
system: | |||||
Manager: | |||||
DefaultLimitNOFILE: 307200 | |||||
DefaultLimitNPROC: 307200 | |||||
user: | |||||
Manager: | |||||
DefaultLimitCPU: 2 | |||||
DefaultLimitNPROC: 4 | |||||
Kernel | Kernel | ||||
~~~~~~ | ~~~~~~ | ||||
{%- from "linux/map.jinja" import system with context -%} | |||||
{%- for section, options in settings.iteritems() -%} | |||||
[{{ section }}] | |||||
{%- for option, value in options.iteritems() %} | |||||
{{ option }}={{ value }} | |||||
{%- endfor -%} | |||||
{%- endfor -%} |
{%- if system.service is defined %} | {%- if system.service is defined %} | ||||
- linux.system.service | - linux.system.service | ||||
{%- endif %} | {%- endif %} | ||||
{%- if system.systemd is defined %} | |||||
- linux.system.systemd | |||||
{%- endif %} |
{%- from "linux/map.jinja" import system with context %} | |||||
{%- if system.enabled and grains.get('init', None) == 'systemd' %} | |||||
{%- if system.systemd.system is defined %} | |||||
linux_systemd_system_config: | |||||
file.managed: | |||||
- name: /etc/systemd/system.conf.d/90-salt.conf | |||||
- source: salt://linux/files/systemd.conf | |||||
- template: jinja | |||||
- makedirs: True | |||||
- defaults: | |||||
settings: {{ system.systemd.system }} | |||||
- watch_in: | |||||
- module: linux_systemd_reload | |||||
{%- endif %} | |||||
{%- if system.systemd.user is defined %} | |||||
linux_systemd_user_config: | |||||
file.managed: | |||||
- name: /etc/systemd/user.conf.d/90-salt.conf | |||||
- source: salt://linux/files/systemd.conf | |||||
- template: jinja | |||||
- makedirs: True | |||||
- defaults: | |||||
settings: {{ system.systemd.user }} | |||||
- watch_in: | |||||
- module: linux_systemd_reload | |||||
{%- endif %} | |||||
linux_systemd_reload: | |||||
module.wait: | |||||
- name: service.systemctl_reload | |||||
{%- endif %} |