bundles/systemd: ensure we have systemd-timesyncd installed and running
This commit is contained in:
parent
28b235514a
commit
a9d4cc73c1
2 changed files with 15 additions and 0 deletions
|
@ -24,6 +24,9 @@ actions = {
|
||||||
'systemd-enable-ntp': {
|
'systemd-enable-ntp': {
|
||||||
'command': 'timedatectl set-ntp true',
|
'command': 'timedatectl set-ntp true',
|
||||||
'unless': 'timedatectl status | grep -Fi \'ntp service\' | grep -i \'active\'',
|
'unless': 'timedatectl status | grep -Fi \'ntp service\' | grep -i \'active\'',
|
||||||
|
'needs': {
|
||||||
|
'svc_systemd:systemd-timesyncd',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,4 +48,5 @@ svc_systemd = {
|
||||||
'file:/etc/systemd/journald.conf',
|
'file:/etc/systemd/journald.conf',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'systemd-timesyncd': {},
|
||||||
}
|
}
|
||||||
|
|
11
bundles/systemd/metadata.py
Normal file
11
bundles/systemd/metadata.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'systemd-timesyncd': {
|
||||||
|
'needed_by': {
|
||||||
|
'svc_systemd:systemd-timesyncd',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in a new issue