systemd-journald bundle
This commit is contained in:
parent
d2916ef4f9
commit
487899ae3e
6 changed files with 20 additions and 20 deletions
|
@ -4,10 +4,8 @@ defaults = {
|
||||||
'grafana_rows': {
|
'grafana_rows': {
|
||||||
'health',
|
'health',
|
||||||
},
|
},
|
||||||
'systemd': {
|
'systemd-journald': {
|
||||||
'journald.conf': {
|
'Storage': 'volatile',
|
||||||
'Storage': 'volatile',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
14
bundles/systemd-journald/items.py
Normal file
14
bundles/systemd-journald/items.py
Normal 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': {},
|
||||||
|
}
|
3
bundles/systemd-journald/metadata.py
Normal file
3
bundles/systemd-journald/metadata.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
defaults = {
|
||||||
|
'systemd-journald': {}
|
||||||
|
}
|
|
@ -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',
|
||||||
|
|
|
@ -2,7 +2,6 @@ defaults = {
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': {},
|
'units': {},
|
||||||
'services': {},
|
'services': {},
|
||||||
'journald.conf': {},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
'network',
|
'network',
|
||||||
'ssh',
|
'ssh',
|
||||||
'systemd',
|
'systemd',
|
||||||
|
'systemd-journald',
|
||||||
'systemd-networkd',
|
'systemd-networkd',
|
||||||
'systemd-mount',
|
'systemd-mount',
|
||||||
'systemd-timers',
|
'systemd-timers',
|
||||||
|
|
Loading…
Reference in a new issue