DefaultLimitCPU: 2 | DefaultLimitCPU: 2 | ||||
DefaultLimitNPROC: 4 | DefaultLimitNPROC: 4 | ||||
Systemd journal settings: | |||||
.. code-block:: yaml | |||||
linux: | |||||
system: | |||||
... | |||||
systemd: | |||||
journal: | |||||
SystemMaxUse: "50M" | |||||
RuntimeMaxFiles: "100" | |||||
Ensure presence of directory: | Ensure presence of directory: | ||||
.. code-block:: yaml | .. code-block:: yaml |
{%- from "linux/map.jinja" import system with context -%} | |||||
#This file is managed by salt | |||||
[Journal] | |||||
{%- for option, value in settings.items() %} | |||||
{{ option }}={{ value }} | |||||
{%- endfor -%} |
{%- from "linux/map.jinja" import system with context %} | |||||
{%- if system.enabled and grains.get('init', None) == 'systemd' %} | |||||
{%- if system.systemd.journal is defined %} | |||||
linux_systemd_system_config: | |||||
file.managed: | |||||
- name: /etc/systemd/journald.conf.d/90-salt.conf | |||||
- source: salt://linux/files/journal.conf | |||||
- template: jinja | |||||
- makedirs: True | |||||
- defaults: | |||||
settings: {{ system.systemd.journal }} | |||||
- watch_in: | |||||
- module: linux_journal_systemd_reload | |||||
linux_journal_systemd_reload: | |||||
module.wait: | |||||
- name: service.restart | |||||
- m_name: systemd-journald | |||||
- require: | |||||
- module: service.systemctl_reload | |||||
{%- endif %} | |||||
{%- endif %} |
- host1 | - host1 | ||||
- host2 | - host2 | ||||
- .local | - .local | ||||
# pillars for netconsole setup | # pillars for netconsole setup | ||||
netconsole: | netconsole: | ||||
enabled: true | enabled: true |