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

Unknown key 'Description' in section [WireGuardPeer] #123

Open
alexshyriaiev opened this issue Jan 14, 2025 · 0 comments
Open

Unknown key 'Description' in section [WireGuardPeer] #123

alexshyriaiev opened this issue Jan 14, 2025 · 0 comments

Comments

@alexshyriaiev
Copy link

Description=<%= $peer['description'] %>

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.34.0
  • Ruby: 2.7.8
  • Distribution: Debian 12.9
  • Module version: 4.1.0

How to reproduce (e.g Puppet code you use)

Run any code with description defined for peers and systemd provider

What are you seeing

Warnings like systemd-networkd[1780650]: /etc/systemd/network/wg0.netdev:12: Unknown key 'Description' in section [WireGuardPeer], ignoring. in logs, which are also popping up in monitoring systems

What behaviour did you expect instead

Maybe it will be reasonable to add Description in [WireGuardPeer] section as a comment, something like this:

[WireGuardPeer]
<% if $peer['description'] { -%>
#Description: <%= $peer['description'] %>
<% } -%>

Output log

Any additional information you'd like to impart

According to documentation Description key is only accepted in [NetDev] section, but not in [WireGuardPeer] section
https://man7.org/linux/man-pages/man5/systemd.netdev.5.html#[WIREGUARDPEER]_SECTION_OPTIONS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant