-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Consider adding the os::distro fact #36
Comments
I don't understand this request. It looks like this fact is already present : https://github.com/camptocamp/facterdb/blob/master/facts/3.3/debian-8-x86_64.facts#L209-L220 |
It is present for some OS and not for others. I noticed it missing for CentOS 6 and 7 and Redhat 6 and 7. When I run Facter on a CentOS 6 machine, I get this:
|
Maybe this fact requires |
I will set up a fresh centOS 6 and check. Will take a day or so until I can do it
Sent from handheld; pls excuse terseness...
…-------- Original message --------
From: Mickaël Canévet <notifications@github.com>
Date: 3/14/17 15:32 (GMT-05:00)
To: camptocamp/facterdb <facterdb@noreply.github.com>
Cc: chrisowensboston <ctag@chris-owens.com>, Author <author@noreply.github.com>
Subject: Re: [camptocamp/facterdb] Consider adding the os::distro fact (#36)
Maybe this fact requires lsb-core which is not installed by default on RHEL.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/camptocamp/facterdb","title":"camptocamp/facterdb","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/camptocamp/facterdb"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mcanevet in #36: Maybe this fact requires `lsb-core` which is not installed by default on RHEL."}],"action":{"name":"View Issue","url":"#36 (comment)"}}}
|
Yes, the os.distro fact comes from lsb_release, so the package containing that program needs to be installed (redhat-lsb-core on Fedora and derivatives, lsb-release on Debian and derivatives). |
I think this project should not supports facts that are not available by default. |
I agree with @mcanevet that the facterdb factsets should represent the facts that are available on a system by default, otherwise they're not accurate representations. |
Consider adding the os::distro fact. I run into puppet manifests that use codename to select templates, for example.
If you are interested I'll do this and submit a PR
The text was updated successfully, but these errors were encountered: