Conversation
- add hiera config and data dir - add new parameter for group of $config_directory - add data for current default use of systemd-network - add data for RedHat family which uses root - update metadata to indicate support of RedHat
- replace refs with parameter - update file mode for config and pub key
| @@ -0,0 +1,3 @@ | |||
| --- | |||
|
|
|||
| wireguard::config_directory_group: 'systemd-network' | |||
There was a problem hiding this comment.
has redhat no equivalent group?
There was a problem hiding this comment.
Not out of the box. The systemd-network group is only created if you install systemd-networkd. The RHEL 9 docs don't even mention any configuration using networkctl - here is the RHEL 9 networking documentation (free to access): https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/configuring_and_managing_networking/index
On RHEL 9 wireguard-tools only requires that systemd-resolved be installed that is "extra" (ie not systemd-networkd). The default ownership on /etc/wireguard is root/root with mode 0700.
Looking at some old bugzilla reports, Redhat didn't want to support systemd-networkd for RHEL 8 and perhaps RHEL 9, but I've struggled to find mention of it in RHEL 9 docs.
Pull Request (PR) description
This issue addresses #97 which enables support for RedHat family.
This Pull Request (PR) fixes the following issues
Fixes #97
Fixes #125