Skip to content

Commit a01b900

Browse files
authored
fix(base): disable ntp installed on noble (#386)
* fix(base): disable ntp installed on noble * feat(base): add timesyncd state * Update salt/base/sanity.sls * chore: simplify code block * feat: add new custom grain check for containers
1 parent 4df4a07 commit a01b900

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

salt/base/sanity.sls

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ niceties:
55
- htop
66
- traceroute
77

8-
time-sync:
8+
{% if grains["oscodename"] in ["noble"] %}
9+
systemd-timesyncd:
10+
pkg:
11+
- installed
12+
service:
13+
{% if grains["detect_virt"] in ["docker"] %}
14+
- enabled
15+
{% else %}
16+
- running
17+
- enable: True
18+
{% endif %}
19+
{% else %}
20+
ntp-packages:
921
pkg.installed:
1022
- pkgs:
1123
- ntp
@@ -15,7 +27,7 @@ ntp:
1527
service:
1628
- running
1729
- enable: True
18-
30+
{% endif %}
1931

2032
# Cron has a default $PATH of only /usr/bin:/bin, however the root user's
2133
# default $PATH in the shell includes various sbin directories. This can cause

0 commit comments

Comments
 (0)