-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Arch Linux has no osfinger #54344
Comments
could do something similar to mac: https://github.com/saltstack/salt/blob/v2019.2.0/salt/grains/core.py#L1968-L1980 since linux_distribution isn't picking up everything correctly. sounds good to me |
hrm. Arch, being Linux, doesn't have sw_vars like macOS. However, it does have systemd (was one of the first adopters, actually!), so you can get some system information via parsing /etc/os-release. BUT! It's worth noting that:
grains DO populate correctly (as |
(To be clear, I'm basically saying it'd be great if |
I think you are right that we should just set these values statically as you posted in your fist post. I only posted to the macosx portion because we are setting some values there statically for that OS, and we can do the same for arch in the same place for the values that need to be fixed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Keep open |
Thank you for updating this issue. It is no longer marked as stale. |
I worked on cleaning up the OS grain calculation on Linux in #61626. We should address this bug after the pull request got reviewed and merged.
So following that, I would say that |
Description of Issue
So I'm trying to differentiate between CentOS 6, CentOS 7, RHEL 7, and Arch Linux when setting up e.g. package names.
Normally, this'd be a cinch - if issue #51478 wasn't the case. But it is, so cinch it is not. Arch has no
osfinger
grain, hence my need to use filter_by lists in the first place.I'd presume
osfinger
is intended to be a unique identifier across distros/OSes and versions/releases, yes?So since Arch is rolling release and should always have all packages kept updated:
then I propose the following changes:
osrelease
should always be a fixed string for Arch (and other rolling distros, such as Gentoo): latest (or none, etc. - not left blank)osfinger
for Arch Linux should be ArchLinux, Arch Linux, Arch-Linux, or the like.Setup
N/A
Steps to Reproduce Issue
N/A
Versions Report
Master:
Minion:
The text was updated successfully, but these errors were encountered: