Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add management for systemd-resolved #31

Merged
merged 2 commits into from
Jul 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -- Class systemd
# This module allows triggering systemd commands once for all modules
# -- Class systemd
# This module allows triggering systemd commands once for all modules
class systemd (
$service_limits = {}
$service_limits = {},
Boolean $manage_resolved = true,
){

Exec {
Expand All @@ -21,4 +22,14 @@

create_resources('systemd::service_limits', $service_limits, {})

if $manage_resolved {
service{'systemd-resolved':
ensure => 'running',
enable => true,
}
-> file{'/etc/resolv.conf':
ensure => 'symlink',
target => '/run/systemd/resolve/resolv.conf',
}
}
}