diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-22 17:58:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 17:58:21 +0100 |
commit | 4393a2fb056574f5079270554d30751d11bf5a9a (patch) | |
tree | c0d7805976bc9a1730ac2da22231a19c21ed0048 /src | |
parent | dfbc854157fa4655a8f459b2447df64dc74119d1 (diff) | |
parent | f999a7160745668dbcfd79a3c71bb8510d1aaabe (diff) | |
download | vyos-1x-4393a2fb056574f5079270554d30751d11bf5a9a.tar.gz vyos-1x-4393a2fb056574f5079270554d30751d11bf5a9a.zip |
Merge pull request #2676 from sever-sever/T5840
T5840: Add override for systemd kea-ctrl-agent.service
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 958e90014..e06a3c8a8 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -41,6 +41,7 @@ ctrl_config_file = '/run/kea/kea-ctrl-agent.conf' ctrl_socket = '/run/kea/dhcp4-ctrl-socket' config_file = '/run/kea/kea-dhcp4.conf' lease_file = '/config/dhcp4.leases' +systemd_override = r'/run/systemd/system/kea-ctrl-agent.service.d/10-override.conf' ca_cert_file = '/run/kea/kea-failover-ca.pem' cert_file = '/run/kea/kea-failover.pem' @@ -332,6 +333,8 @@ def generate(dhcp): dhcp['failover']['ca_cert_file'] = ca_cert_file + render(systemd_override, 'dhcp-server/10-override.conf.j2', dhcp) + render(ctrl_config_file, 'dhcp-server/kea-ctrl-agent.conf.j2', dhcp) render(config_file, 'dhcp-server/kea-dhcp4.conf.j2', dhcp) |