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': { 'grafana_rows': {
'health', 'health',
}, },
'systemd': { 'systemd-journald': {
'journald.conf': { 'Storage': 'volatile',
'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 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 = { actions = {
'systemd-reload': { 'systemd-reload': {
'command': 'systemctl daemon-reload', 'command': 'systemctl daemon-reload',

View file

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

View file

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