Commit 8a80e599 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Merge branch 'oomd-config' into 'master'

Install OOM configuration

See merge request !491
parents c9754eb3 a2fd81c7
Pipeline #11451 passed with stage
in 38 seconds
[Service]
ManagedOOMMemoryPressure=kill
ManagedOOMMemoryPressureLimit=60%
...@@ -103,6 +103,20 @@ ...@@ -103,6 +103,20 @@
command: systemd-tmpfiles --create command: systemd-tmpfiles --create
when: zramtmpfiles.changed when: zramtmpfiles.changed
- name: create drop-in directories for oomd
file: path=/etc/systemd/system/{{ item }}.d state=directory owner=root group=root mode=0755
with_items:
- "-.slice"
- user@.service
- name: install drop-in snippets for oomd
copy: src=oomd-override_{{ item }}.conf dest=/etc/systemd/system/{{ item }}.d/override.conf owner=root group=root mode=0644
with_items:
- "-.slice"
- user@.service
notify:
- systemd daemon-reload
- name: start systemd-oomd - name: start systemd-oomd
service: name=systemd-oomd state=started enabled=yes service: name=systemd-oomd state=started enabled=yes
......
[Service]
MemoryHigh=5.5G
MemoryMax=6G
ManagedOOMMemoryPressure=kill
ManagedOOMMemoryPressureLimit=60%
...@@ -17,5 +17,11 @@ ...@@ -17,5 +17,11 @@
- name: open firewall hole - name: open firewall hole
ansible.posix.firewalld: service=http zone=wireguard permanent=true state=enabled immediate=yes ansible.posix.firewalld: service=http zone=wireguard permanent=true state=enabled immediate=yes
- name: create drop-in directory for loki
file: path=/etc/systemd/system/loki.service.d state=directory owner=root group=root mode=0755
- name: install drop-in snippet for loki
copy: src=loki-override.conf dest=/etc/systemd/system/loki.service.d/override.conf owner=root group=root mode=0644
- name: start and enable loki - name: start and enable loki
systemd: name=loki.service enabled=yes daemon_reload=yes state=started systemd: name=loki.service enabled=yes daemon_reload=yes state=started
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment