-
Notifications
You must be signed in to change notification settings - Fork 234
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
Add automember module #486
Conversation
oh, the tag did work! Just didn't autocomplete. |
Hello @jake2184, The task failing is due to differences in string handling in Python 2 and 3. To fix this issue you should add the following to the imports: from ansible.module_utils._text import to_text And then, when you need the string, you use Thank you for you contribution! |
9535f38
to
f9cb369
Compare
I seem to be getting errors now that I'm fairly sure are unrelated to any of my changes:
This is during facts collection? Is there anything I need to setup (rebase on master?) or change to get these working? |
That is really weird... I'll look into that in the next days, as I really don't have the time now. |
@jake2184 the failures on the checks, currently, have nothing to do with your changes as we are having some issues with the images used for testing. I'm fixing those, but we can't use the checks for a while. I'll let you know when everything is working again. |
@chr15p, all test environments are up and running again. Please, fix the failing tests. |
Tests running cleanly |
@jake2184 great job! I'll try to do a proper review during this week. |
Can I bump this please @rjeffman ? |
And again @rjeffman @t-woerner |
@jake2184 I was on vacation, and only returning "tomorrow". I'll look at it Really Soon Now (tm). :-) |
No worries, as long as it doesn't fall through the cracks :) |
Is this going to be looked at any time soon? @rjeffman |
Hello, sorry for the too long delay. We're having issues with CI (and available time), as soon as CI is fixed, we'll restart pushing PRs, automount and automember modules are a priority. I hope this to be soon, but can't promise as, right now, time is at a premium. |
Hello @jake2184, We had issues with CI, and the fixes require that all pending PR are rebased. Can you please rebase your PR? |
Tested on the CLI (not the module) and it should work with Centos 7. Just restarted the test. All FreeIPA version are different in the tested environments. CentOS 7 has FreeIPA version 4.6.8, CentOS 8 is 4.8.7 and Fedora is 4.9.3. |
After re-running the tests, the same test still fails. Fixing it will require some debuging. |
I could reproduce your issue locally, with CentOS-7, but have no time to debug it. If you have |
For some reason, it looks like
|
The new argument ignore has been added to compare_args_ipa to ignore attributes while comparing attributes of the user args and the object args returned from IPA. This code is using changes from - Wolskie in PR freeipa#392 - jake2184 in PR freeipa#486
The new argument ignore has been added to compare_args_ipa to ignore attributes while comparing attributes of the user args and the object args returned from IPA find or show command. This code is using changes from - Wolskie in PR freeipa#392 - jake2184 in PR freeipa#486
@jake2184, sorry, but you'll need to rebase this PR. For |
Rebased, comments resolved, awaiting CI checks |
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.
Forgot that new modules must have a single commit.
There is a new automember management module placed in the plugins folder: plugins/modules/ipaautomember.py The automember module allows to ensure presence or absence of automember rules and manage automember rule conditions. Here is the documentation for the module: README-automember.md New example playbooks have been added: playbooks/automember/automember-group-absent.yml playbooks/automember/automember-group-present.yml playbooks/automember/automember-hostgroup-absent.yml playbooks/automember/automember-hostgroup-present.yml playbooks/automember/automember-hostgroup-rule-absent.yml playbooks/automember/automember-hostgroup-rule-present.yml New tests for the module: tests/automember/test_automember.yml
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
@jake2184 thank you for taking over the work on this module, I appreciate it very much. |
I've extended & updated an automember module, first proposed in #392. That PR looked active for a couple of weeks, but silent for months. I've forked it, rebased on master, and addressed a few of the issues highlighted in the PR.
I can't tag the previous author, Mark Hahl / @wolskie. I haven't changed any of the author notes or copyright.