Skip to content

Add puppet-strings docs - #64

Open
baurmatt wants to merge 1 commit into
voxpupuli:masterfrom
baurmatt:puppet-strings
Open

Add puppet-strings docs#64
baurmatt wants to merge 1 commit into
voxpupuli:masterfrom
baurmatt:puppet-strings

Conversation

@baurmatt

@baurmatt baurmatt commented Oct 9, 2020

Copy link
Copy Markdown

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

Comment thread manifests/pam/common.pp
#
# It shouldn't be necessary to directly include this class.
#
# @summary Common PAM requirements for googleauthenticator.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be marked private?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm only marking classes as private which use assert_private() because I think it's better to enforce it instead of only marking it private in the documentation.

Comment thread manifests/pam.pp
# }
#
# @summary Setup a PAM module to use Google-authenticator.
# @param mode Optionally, set the mode to use. 'root-only' or 'all-users' are supported right now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That link didn't work out 🙈 Not sure what you're pointing at.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh... Not too sure. How does it relate to

# ('root-only', 'all-users' and 'systemwide-users' are supported right now).
???

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

tbh, I have no idea. I've just converted the documentation to puppet-strings. If I google for Google Authenticator setup (e.g. https://wiki.archlinux.org/index.php/Google_Authenticator) I can't even figure out where this mode parameter is going to.

Comment thread manifests/pam/redhat.pp
#
# @summary Setup a PAM module for Google-authenticator on RedHat/CentOS.
# @param mode Set the mode to use ('root-only', 'all-users' and 'systemwide-users' are supported right now).
# @param ensure present/absent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Better to add an Enum data type?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Sure, there is only more stuff to refactor. But I prefer to keep changes minimal because it makes it easier to review and trace back in cases of problems.

Comment thread REFERENCE.md Outdated
#
# Common class for googleauthenticator::user::systemwide
#
# @summary Common class for googleauthenticator::user::systemwide

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this private?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

As said above :) I prefer to keep it sync with assert_private().

@alexjfisher alexjfisher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for working on so many modules. Mostly they're looking great. Just a few comments in this one, (and some of the comments I've made in other PRs I might not have called out here explicitly).

@baurmatt
baurmatt force-pushed the puppet-strings branch 3 times, most recently from 917b8f1 to 7aa702c Compare October 14, 2020 18:54
@vox-pupuli-tasks

Copy link
Copy Markdown

Dear @baurmatt, thanks for the PR!

This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

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