Merge "Update the basic systemd extra configs for isolation and consistency"

This commit is contained in:
Zuul 2017-12-01 01:44:46 +00:00 committed by Gerrit Code Review
commit a4f2ebde01
3 changed files with 16 additions and 2 deletions

View File

@ -141,9 +141,10 @@
with_items:
- { src: "systemd.environment.conf.j2", dest: "environment.conf" }
- { src: "systemd.limits.conf.j2", dest: "limits.conf" }
- { src: "systemd.timeout.conf.j2", dest: "timeout.conf" }
- { src: "systemd.restart.conf.j2", dest: "restart.conf" }
- { src: "without-privatedevices.conf.j2", dest: "without-privatedevices.conf" }
- { src: "systemd.slice.conf.j2", dest: "slice.conf" }
- { src: "systemd.timeout.conf.j2", dest: "timeout.conf" }
- { src: "systemd.without-privatedevices.conf.j2", dest: "without-privatedevices.conf" }
notify:
- Manage LB
- Reload the systemd daemon

View File

@ -0,0 +1,11 @@
# {{ ansible_managed }}
[Service]
# This creates a specific slice to operate from. The accounting options give us
# the ability to see resource usage through the `systemd-cgtop` command and
# further isolate this service from the host machine.
Slice=galera.slice
CPUAccounting=true
BlockIOAccounting=true
MemoryAccounting=false
TasksAccounting=true

View File

@ -1,2 +1,4 @@
# {{ ansible_managed }}
[Service]
PrivateDevices={{ galera_disable_privatedevices | bool | ternary('false', 'true') }}