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

use a configurable root_group for things owned by root #353

Closed
wants to merge 10 commits into from

Conversation

rtprio
Copy link
Contributor

@rtprio rtprio commented Jul 12, 2024

Pull Request (PR) description

Change existing _group parameter to root_group and use it everywhere group => 'root' is stated.
I did not make the change backward compatible, the old parameter is renamed.

This Pull Request (PR) fixes the following issues

I took feedback on #231 . Since there is no root group, this fixes the module on FreeBSD and probably OpenBSD.

@rtprio
Copy link
Contributor Author

rtprio commented Jul 13, 2024

letsencrypt::letsencrypt_lookup was undocumented previously, I'm not able to get that to pass on my end.

@@ -55,7 +56,7 @@ class { 'letsencrypt':
is_expected.to contain_file("#{pathprefix}/etc/letsencrypt/dns-rfc2136.ini").
with_ensure('file').
with_owner('root').
with_group('root').
with_group("#{rootgroup}").
Copy link
Member

Choose a reason for hiding this comment

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

you can directly use the variable

Suggested change
with_group("#{rootgroup}").
with_group(rootgroup).

#
class letsencrypt::scripts () {
class letsencrypt::scripts (
String[1] $root_group = $letsencrypt::root_group,
Copy link
Member

Choose a reason for hiding this comment

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

we don't need so much indent:

Suggested change
String[1] $root_group = $letsencrypt::root_group,
String[1] $root_group = $letsencrypt::root_group,

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

Successfully merging this pull request may close these issues.

2 participants