-
Notifications
You must be signed in to change notification settings - Fork 138
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
fix: policycoreutils python package name #63
fix: policycoreutils python package name #63
Conversation
Signed-off-by: mikaellanger <mikael.langer@gmail.com>
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.
Two things. This task is used in several roles, so should update all them.
I also think this is going to be a problem for redhat 8+, since this package has been renamed.
You mean the same task is duplicated in more places in this repo? Sure.
AFAIK it was renamed from policycoreutils-python to python3-policycoreutils, so I believe it's still fine for redhat 8+? |
Hmm, I guess if python3 is a good enough signal, it should work. |
The definition is present in these files: ansible/roles/prometheus/vars/main.yml Lines 12 to 14 in d389ad2
ansible/roles/alertmanager/tasks/selinux.yml Lines 4 to 6 in d389ad2
ansible/roles/node_exporter/tasks/selinux.yml Lines 4 to 6 in d389ad2
The package change came with python3 on redhat based platforms, that's why I thought the cleanest approach would be to make the conditional work on the python interpreter. (and yes you can blame me for the package name typo - whoops :) ) |
Changed the other two places.
Based on available packages I agree that seems to be correct, yes. |
@mikaellanger please fix sign-off |
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.
Just need to fix the DCO.
Signed-off-by: mikaellanger <mikael.langer@gmail.com>
d22df30
to
6394a87
Compare
Done |
I have a few legacy hosts with Centos 7 where trying to install python-policycoreutils fails.
At least in Centos 7 the packages is named policycoreutils-python, and finding no such package here either https://pkgs.org/download/python-policycoreutils