Skip to content
Snippets Groups Projects
Commit d713f54b authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Add simple state to enable and configure systemd-resolved

parent eddd28c2
Branches
No related tags found
No related merge requests found
### THIS FILE IS MANAGED BY SALT!
### YOUR CHANGES WILL BE OVERWRITTEN!
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details
[Resolve]
DNS= {{ hshbase['dns']|join(',') }}
#FallbackDNS=
#Domains=
#LLMNR=yes
MulticastDNS=no
#DNSSEC=allow-downgrade
#DNSOverTLS=no
Cache=no
#DNSStubListener=yes
#ReadEtcHosts=yes
hsh_manage_systemd_resolved_config:
file.managed:
- name: /etc/systemd/resolved.conf
- source: salt://hshbase/systemd-resolved/files/etc/systemd/resolved.conf
- template: jinja
hsh_enable_and_restart_systemd_resolved:
service.running:
- name: systemd-resolved.service
- enable: True
- restart: True
- require:
- file: hsh_manage_systemd_resolved_config
- watch:
- file: hsh_manage_systemd_resolved_config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment