systemd-journald bundle

This commit is contained in:
mwiegand 2021-11-10 02:12:50 +01:00
parent d2916ef4f9
commit 487899ae3e
6 changed files with 20 additions and 20 deletions

View file

@ -4,10 +4,8 @@ defaults = {
'grafana_rows': {
'health',
},
'systemd': {
'journald.conf': {
'Storage': 'volatile',
},
'systemd-journald': {
'Storage': 'volatile',
},
}

View file

@ -0,0 +1,14 @@
files = {
'/etc/systemd/journald.conf.d/managed.conf': {
'content': repo.libs.systemd.generate_unitfile({
'Jorunal': node.metadata.get('systemd-journald'),
}),
'triggers': {
'svc_systemd:systemd-journald:restart',
},
}
}
svc_systemd = {
'systemd-journald': {},
}

View file

@ -0,0 +1,3 @@
defaults = {
'systemd-journald': {}
}

View file

@ -1,20 +1,5 @@
from bundlewrap.utils.dicts import merge_dict
files = {
'/etc/systemd/journald.conf.d/managed.conf': {
'content': repo.libs.systemd.generate_unitfile({
'Jorunal': node.metadata.get('systemd/journald.conf'),
}),
'triggers': {
'svc_systemd:systemd-journald:restart',
},
}
}
svc_systemd = {
'systemd-journald': {},
}
actions = {
'systemd-reload': {
'command': 'systemctl daemon-reload',

View file

@ -2,7 +2,6 @@ defaults = {
'systemd': {
'units': {},
'services': {},
'journald.conf': {},
}
}

View file

@ -9,6 +9,7 @@
'network',
'ssh',
'systemd',
'systemd-journald',
'systemd-networkd',
'systemd-mount',
'systemd-timers',