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

refactor the system ldap role #5511

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

refactor the system ldap role #5511

wants to merge 8 commits into from

Conversation

kayiwa
Copy link
Member

@kayiwa kayiwa commented Nov 5, 2024

we will create a system ldap role which can be used to bind vms to active directory
and sftp role and/or playbook can incorporate this role

This PR decouples system ldap from sftp. If it goes in it means any vm that needs to bind to active directory can use it. We've had an example of this need with the RDSS mflux vms. Our Active Directory binding is currently broken so this can be merged to main. A follow up PR for lib-sftp will be coming.

Partially addresses #4938

@kayiwa kayiwa force-pushed the i4938_sftp_jammy branch 8 times, most recently from 209c225 to cfb1889 Compare November 5, 2024 15:06
@kayiwa kayiwa marked this pull request as ready for review November 5, 2024 15:36
@kayiwa kayiwa requested a review from acozine November 5, 2024 15:36
@kayiwa kayiwa force-pushed the i4938_sftp_jammy branch 2 times, most recently from 938eb4c to 910e1b9 Compare November 5, 2024 15:47
Copy link
Contributor

@acozine acozine left a comment

Choose a reason for hiding this comment

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

Nice! This is a great step toward flexibility in building systems - we can use an AD binding wherever we want to.

I had a couple of questions and suggestions, see below.

roles/system_ldap/README.md Outdated Show resolved Hide resolved
roles/system_ldap/README.md Outdated Show resolved Hide resolved
roles/system_ldap/README.md Outdated Show resolved Hide resolved
roles/system_ldap/molecule/default/verify.yml Outdated Show resolved Hide resolved
roles/system_ldap/tasks/main.yml Outdated Show resolved Hide resolved
roles/system_ldap/tasks/main.yml Outdated Show resolved Hide resolved
roles/system_ldap/tasks/main.yml Outdated Show resolved Hide resolved
roles/system_ldap/tasks/main.yml Show resolved Hide resolved
@kayiwa kayiwa force-pushed the i4938_sftp_jammy branch 7 times, most recently from a5a6940 to 037476c Compare November 8, 2024 23:21
changed_when: false
when: running_on_server

- name: Sssd_ad | debug realm list output
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this so it stops the playbook if the output is not correct at this stage.

Copy link
Member Author

Choose a reason for hiding this comment

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

only way to know what this output is will make this PR larger by incorporating this. https://github.com/pulibrary/princeton_ansible/tree/i4938_sftp_role

register: ad_login_result
when: running_on_server

- name: Sssd_ad | debug AD login result
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this fail if the output is not correct/complete.

Copy link
Member Author

Choose a reason for hiding this comment

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

Same here. I don't know what the output would be https://github.com/pulibrary/princeton_ansible/tree/i4938_sftp_role

kayiwa and others added 3 commits November 12, 2024 08:19
we will create a system ldap role which can be used to bind vms to
active directory
and sftp role and/or playbook can incorporate this role
our Active Directory bind user goes to group_vars/all because it will be
used by any VM that needs to bind to Active Directory
@kayiwa kayiwa requested a review from acozine November 13, 2024 12:51
@kayiwa kayiwa mentioned this pull request Nov 13, 2024
6 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