Skip to content

Commit

Permalink
add management for systemd-resolved (#31)
Browse files Browse the repository at this point in the history
* purge trailing whitespace

* add management for systemd-resolved
  • Loading branch information
bastelfreak authored and raphink committed Jul 13, 2017
1 parent c9d2e51 commit 17e9594
Showing 1 changed file with 14 additions and 3 deletions.
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',
}
}
}

2 comments on commit 17e9594

@EmilienM
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bastelfreak FYI this patch broke our CI in OpenStack TripleO, see https://bugs.launchpad.net/tripleo/+bug/1704160

@bastelfreak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already fixed in #32

Please sign in to comment.