Skip to content

FreeIPA integration#147

Open
creideiki wants to merge 8 commits into
saab-simc-admin:masterfrom
creideiki:freeipa-integration
Open

FreeIPA integration#147
creideiki wants to merge 8 commits into
saab-simc-admin:masterfrom
creideiki:freeipa-integration

Conversation

@creideiki
Copy link
Copy Markdown
Contributor

@creideiki creideiki commented Oct 12, 2017

Continuing @albgus's abandoned work in #91, this is a reworked implementation of palletjack2ipahost for synchronising host objects and hostgroups from a warehouse to a FreeIPA server.

This adds new functionality, and should therefore increase the minor version.

Changelog:

Albin Gustavsson and others added 7 commits October 11, 2017 12:37
In saab-simc-admin#91 @albgus was
working on a tool for adding FreeIPA hosts for Pallet Jack systems.
However, he left the project before the tool vould be merged.

Import his latest version as a base for future work.
RuboCop doesn't like including "then" in multi-line "if" statements.
We still had a few of those floating around, but ignored. Fix them,
and remove the configuration for ignoring them.
RuboCop prefers "!" instead of "not", but we don't. Disable that test.
Highlights:
* Break up #process into several functions
* Handle error returns better
* Improved documentation
* New dependency: hashie ~> 3
@creideiki
Copy link
Copy Markdown
Contributor Author

When setting up a FreeIPA server (either original or mirror), it is automatically added to the ipaservers hostgroup. Should the tool care? Currently, it looks for the role freeipa-client, which means it ignores servers anyway.

I have not dared try seeing what happens if you remove a server from that group. And anyway, it's a problem that can be solved with documentation.

creideiki added a commit to creideiki/palletjack that referenced this pull request Oct 18, 2017
…tion

* 257ebd0 Document FreeIPA integration in the example warehouse
* f0032a7 RuboCop configuration for pj2ipahost
* a536d24 Major refactoring of pj2ipahost
* 570322b Disable RuboCop warning Style/Not
* 8a39a88 Fix remaining RuboCop warnings for Style/MultilineIfThen
* 7504012 Add dependency on ipa-ruby
* 6e7071b Import work in progress pj2ipahost tool from @albgus
creideiki added a commit to creideiki/palletjack that referenced this pull request Oct 18, 2017
…tion

* 257ebd0 Document FreeIPA integration in the example warehouse
* f0032a7 RuboCop configuration for pj2ipahost
* a536d24 Major refactoring of pj2ipahost
* 570322b Disable RuboCop warning Style/Not
* 8a39a88 Fix remaining RuboCop warnings for Style/MultilineIfThen
* 7504012 Add dependency on ipa-ruby
* 6e7071b Import work in progress pj2ipahost tool from @albgus
Copy link
Copy Markdown
Contributor

@notCalle notCalle left a comment

Choose a reason for hiding this comment

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

The rubocop changes seem unrelated, and need to be moved to their own PR.

@creideiki
Copy link
Copy Markdown
Contributor Author

The RuboCop changes are related. They triggered warnings in palletjack2ipahost, and when I though the solution should be global instead of local I changed them everywhere else as well.

@notCalle notCalle dismissed their stale review November 1, 2017 20:42

The intent was not clear, since 982c001 does not touch pj2ipa, and does not seem to change the outcome of any following commit. But we can keep it on hold here until I can actually test pj2ipa.

Copy link
Copy Markdown
Contributor

@notCalle notCalle left a comment

Choose a reason for hiding this comment

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

I wonder if I'm still allowed to approve things in here.

Edit: nope. Too bad. I'll just have to live with having this in my involves: forever.

@me-minus
Copy link
Copy Markdown

me-minus commented Dec 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants