Skip to content

Commit

Permalink
only contain classes if the needed services exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 12, 2017
1 parent c391df5 commit 7e86ce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
create_resources('systemd::service_limits', $service_limits)
}

if $manage_resolved {
if $manage_resolved and $facts['systemd_internal_services']['systemd-resolved.service'] {
contain ::systemd::resolved
}

if $manage_networkd {
if $manage_networkd and $facts['systemd_internal_services']['systemd-networkd.service'] {
contain ::systemd::networkd
}

if $manage_timesyncd {
if $manage_timesyncd and $facts['systemd_internal_services']['systemd-timesyncd.service'] {
contain ::systemd::timesyncd
}
}

0 comments on commit 7e86ce5

Please sign in to comment.