Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hshbase-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
hshbase-formula
Commits
d713f54b
Commit
d713f54b
authored
3 years ago
by
Jan Philipp Timme
Browse files
Options
Downloads
Patches
Plain Diff
Add simple state to enable and configure systemd-resolved
parent
eddd28c2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hshbase/systemd-resolved/files/etc/systemd/resolved.conf
+27
-0
27 additions, 0 deletions
hshbase/systemd-resolved/files/etc/systemd/resolved.conf
hshbase/systemd-resolved/init.sls
+15
-0
15 additions, 0 deletions
hshbase/systemd-resolved/init.sls
with
42 additions
and
0 deletions
hshbase/systemd-resolved/files/etc/systemd/resolved.conf
0 → 100644
+
27
−
0
View file @
d713f54b
### 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
This diff is collapsed.
Click to expand it.
hshbase/systemd-resolved/init.sls
0 → 100644
+
15
−
0
View file @
d713f54b
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment