-
Notifications
You must be signed in to change notification settings - Fork 66
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
Support for Windows and Mac OS. #177
Comments
So, My idea was that we implement a class per OS type. Distro will identify the OS it's running on (Darwin, nt, linux, etc..) and generate a When you run This will aid users is making OS dependent decisions without having to know which OS they're running on. |
That being said, this means that to keep a consistent API as well have to come up with a good mapping from each OS type to the names of the functions already in distro. |
I would suggest changing |
If we want |
I'd say that something like that would work fine. Do we only define that method when on Linux (forcing |
Um, it seems more natural to me to return empty for |
Oh sure! That can definitely be done. So just a |
This feature is very useful but I don't see any progress? The referenced @sethmlarson closed PR looks a good place to start (resume) work. I don't see why it's taking this long to deliver support for Windows and MacOS systems. |
@FooBarQuaxx Changes to open source projects require contributors willing to give to their free time. Perhaps you could provide a patch? |
It might be helpful to use https://github.com/saltstack/salt/blob/master/salt/grains/core.py#L1624 as a reference when adding this feature |
I was wondering if there is any update on this? Thank you! |
@sethmlarson How open are you to welcome new cores to the project? I could give a hand with maintenance and also address long missing features like this one. |
For those looking for an alternative for Windows until this is added to |
I just released a new project called
|
@kdeldycke Are you going to ask for a merge of these features into upstream? |
@i2 I don't know. Maybe my new features are too ambitious for the stated scope of |
@kdeldycke IMHO, it's worth trying... nothing to lose! I'd contact them (if possible) first before PR. Sometimes that helps! |
Brought this up in Gitter and apparently this has had work done on it in a separate branch. (Link that here?). I've had multiple times where I wanted to have the amount of information about a Windows or Mac OS platform as the distro module gives but
platform.mac_ver
andplatform.win32_ver
are pretty deficient in. This thread is mostly for discussing how this would be done. cc: @nir0sThe text was updated successfully, but these errors were encountered: