Commit f07dc875 authored by Sven enniK's avatar Sven enniK

optimize ntp sls

parent 287e9294
{# Network Time Protocol #}
{% from 'config.jinja' import nodeid, ddmesh_registerkey %}
ntp:
pkg.installed:
- refresh: true
......@@ -9,6 +11,10 @@ ntp:
- restart: true
- watch:
- file: /etc/ntp.conf
{% if nodeid != '' and nodeid != '-' or ddmesh_registerkey != '' and ddmesh_registerkey != '-' %}
- service: S52batmand
- service: S53backbone-fastd2
{% endif %}
- require:
- pkg: ntp
- file: /etc/ntp.conf
......@@ -18,8 +24,8 @@ ntp:
{% else %}
- file: /lib/systemd/system/ntp.service
{% endif %}
- service: S52batmand
- service: S53backbone-fastd2
- service: S40network
- service: S41firewall
{# Configuration #}
......
......@@ -22,7 +22,6 @@ base:
- locales
- timezone
- ntp
- kernel
- kernel.sysctl
......@@ -57,6 +56,7 @@ base:
{# services #}
- ssh
- bind
- ntp
- openvpn
- wireguard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment