-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
feature: improve os detection for inventory page #712
feature: improve os detection for inventory page #712
Conversation
Codecov ReportBase: 85.45% // Head: 85.58% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #712 +/- ##
==========================================
+ Coverage 85.45% 85.58% +0.12%
==========================================
Files 19 19
Lines 1059 1082 +23
==========================================
+ Hits 905 926 +21
- Misses 154 156 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hey, sorry for a slow response @melck. I've been busy lately. Perhaps @bastelfreak has a little bit more time to review this PR? |
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.
to me the change looks fine, but someone with more Python knowledge should take a look as well. @sebastianrakel could you take a look?
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.
I found some time. :) The MR looks good to me except one minor comment about the docs.
I have pre-released this in v4.1.0rc3. It would be great if we could add a screenshot of the Inventory view showing nodes with various OSes for the final v4.1.0 release that I would like to do in a few days. Can you provide such screenshot, @melck? I don't have nodes with other OS than Linux in my infrastructure... |
Hello,
I wanted to use inventory page but it only works with few linux OS. Here is my proposal to support many OS. I have introduced a new parameter named
INVENTORY_FACT_TEMPLATES
to keep customization. This parameter is used to customize cell display using jinja. Default INVENTORY_FACTS has been changed to use trusted and os facts.It has been tested with Puppet agent >= 5 to 7:
With puppet agent 4, windows os will display nothing.
It should fix #485.
What do you think about this changes ?