Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
Class['systemd::install'] -> Class['systemd::resolved']
}

if $manage_networkd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-networkd.service'] {
if $manage_networkd {
contain systemd::networkd
Class['systemd::install'] -> Class['systemd::networkd']
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/network.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
) {
include systemd

if $restart_service and $systemd::manage_networkd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-networkd.service'] {
if $restart_service and $systemd::manage_networkd {
$notify = Service['systemd-networkd']
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest you can also change that if/else to

File["${path}/${name}"] ~> Service['systemd-networkd']

So no else needed, and remove the notify line (line 52).

$notify = undef
Expand Down
Loading