-
Notifications
You must be signed in to change notification settings - Fork 232
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 ipaclient support for Amazon Linux 2 #828
base: master
Are you sure you want to change the base?
Conversation
The vars file for Ansible Linux 2 should not be named |
Yes, unfortunately AL2 doesn't provide the |
RHEL-7 is also not providing the Python 3 IPA bindings. Only Python 2 bindings for IPA are there. |
Why not only create a link from This worked for me. |
I'll be honest, I don't understand how it's supposed to work without switching to python2 if the python3 module is not available. Since the python3 module is not available in AL2's repos and the role installs the modules using I would also prefer to abandon python2 for good, but I haven't been able to get this role to run in python3 on a fresh, up to date AL2 installation even with manual intervention. |
Ansible should automatically use Python2 for all |
Indeed, the Ansible python interpreter discovery uses |
roles/ipaclient/vars/Amazon-2.yml
Outdated
# Provides support for RedHat-7 based Amazon Linux 2 | ||
|
||
ipaclient_packages: [ "ipa-client", "libselinux-python" ] | ||
# The 'ipapython' module is not available in python3. |
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.
Maybe this could be changed to something like in your last comment to point out why this is not the same as in RHEL-7.
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.
Updated
@Drugantibus yes, I tested on a clean AL2 installation. What I did was:
I ran it locally, with KVM/libvirt, not on Amazon cloud. |
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
Please create one patch for this PR. |
Amazon Linux 2 is a RedHat-7 based distro, but reports its major version as '2'. This varfiles allows installation of the correct packages and enrollment using the ipaclient role.