-
Notifications
You must be signed in to change notification settings - Fork 289
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
Idempotentifies "Add SEmodule to fix SELinux issue: zabbix_alerter.sock" task for Zabbix Server #1433
Conversation
I've been meaning of getting around to that annoying selinux compiled file, cause I'm not that fond of it either. If you've reversed its content and it's represented in the .te file you provided, maybe we should just drop this part completely and install the I've just held off on this because it might break the original contributors setup, but the contents of
Curious to know what @pyrodie18 and @BGmot think? |
I had a second look, and extracted the tar.gz archive from the .bsx file, and saw the contents of it. So all that checks out. Then I had a third look, and we're already installing the zabbix-selinux-policy package for zabbix_server. I think the correct approach is just to remove the .bsx script tasks all together in zabbix_server. Then do the same for zabbix_proxy, and make sure we install the Where is this |
Oh wow, totally skipped over that because I had my attention on the .bsx task. I think you're right, these tasks are superfluous in that case. Much more convenient fix to just snip it out :) |
You wanna take a second stab at this and strip the task out instead? |
Made a new PR with a clean fork; closing this one |
SUMMARY
The way SELinux was initially applied resulted in a "CHANGED" every time the task was executed.
ISSUE TYPE
COMPONENT NAME
zabbix_server
ADDITIONAL INFORMATION
Originally the SELinux context was applied using a .bsx file, this seems to be some sort of self-extracting shell script.
I have taken the steps that were used in that file and translated them into Ansible tasks, this also makes the play more transparent and also idempotent.
With a little bit of elbow grease you could apply these same steps for #1340 and resolve this issue as it stems from the same cause.