Skip to content

Conversation

@vchepkov
Copy link
Contributor

systemd-networkd is an external package managed by the module and existing code doesn't manage service until second puppet run

@vchepkov vchepkov added the bug Something isn't working label Nov 27, 2025
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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants