-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Enable LDAP in autofs #163
Conversation
@coreone Looks like there are some failing tests, can you look into those? |
I can look into the failing tests, but they are unrelated to the changes in this PR. |
@dhollinger I fixed the linting errors I found, but I can't figure out why the tests are failing. I think it's somehow Travis-related. When I run the |
@dhollinger Researched this a little. I think the problem here is that facter 2.5 dropped support for OpenSUSE 13.x from the matrix here: https://github.com/camptocamp/facterdb So, the only path forward here is probably:
For a test, I'm going to set OpenSUSE to |
Tests now pass. The changes were:
|
@bastelfreak converted erb templates to epp |
@dhollinger is anything further needed on this? |
My apologies, I didn't see this PR. I just merged #166 where I changed it to 15 so at least the tests passed. Please rebase this on current master. I should also admit that I didn't test it on OpenSUSE. |
@ekohl This has been rebased. I removed the OpenSuSE version change since 15.2 in your PR fixed the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I can't comment too much on the content since I don't use autofs myself. The code itself looks good.
Since @dhollinger did at least a partial review I'll leave it up to him to take a last look. If he has no time, feel free to ping and then I think it can just be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about some update to README.md
about the new features? Also Puppet Strings documentation so that new parameters get added to REFERENCE.md
when it's regenerated.
* Fix linting errors * Update supported OpenSUSE version to fix unit tests * Update `autofs_version` fact code * Add documentation to README * Fix some linting errors in the README
@kenyon added a section to the README about the LDAP changes as well as Puppet Strings inline docs. Also cleaned up most of the linting errors in the README while I was in there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Pull Request (PR) description
Enable LDAP as an option when using autofs. This requires being able to modify the following files:
/etc/sysconfig/autofs
(or/etc/default/autofs
on Debian systems)/etc/autofs_ldap_auth.conf
By default, neither of these files is managed by this module to prevent backward compatibility with existing configurations. Management of the files can be turned on individually via the
autofs::manage_service_config
and
autofs::manage_ldap_auth_conf
booleans. Basic spec tests were also added.