-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add lsusb fact #234
base: master
Are you sure you want to change the base?
Add lsusb fact #234
Conversation
@jcpunk This looks like a great fact, but I'm not quite getting the general use case. This fact could return excessively large amounts on information on some hosts so we have to be careful tossing it into the general mix. If you could provide a specific use case, that could be very helpful to deciding whether or not we can pull it in. We're already looking at I've been thinking about the concept of 'targeted facts' where a control file on the system would both activate the fact and ensure that it only picks up a limited amount of information (even if it could return more). |
I've started a thread in the Puppet Slack to try and remedy the overall 'big facts' issue. |
I'm using this fact in my existing puppet to identify some usb devices we've got that require special system drivers. The code for that is actually pretty hideous... this fact was a 'step 1' in trying to clean up my internal nonsense and generally share with the community. From a usability perspective on For the |
@jcpunk Honestly, the fact looks just fine I'm just worried about the amount of wire space that will use on larger systems and/or systems with a ton of connected devices. I figured that this was for something like driver installation and that totally makes sense but I think we'll need to see if we can get facter to be a bit smarter about letting us configure things before pulling this into core. I hate letting it sit there but we won't close it (either facter will do something or we will) because we're starting to run into the 'large fact' issue across the board. Even some of the native facts are affected (one user in the Puppet Slack indicated that they had a 600+ core system with hundreds of NICs and it was just overwhelming). |
@jcpunk Just wanted to let you know that I haven't forgotten about these. Now that Facter 4 is out, these may become more of a reality but we may have to confine them on the Facter version or something. |
No worries :) |
I'm looking at Facter 4 a bit. Is there any doc for how I could build a custom ruby fact that provides a default ttl? Everything seems to point towards editing |
@jcpunk Ah, I was more referring to the fact that it's back in Ruby and, therefore, easy to hack what we need into it :-D. |
@jcpunk OK, I think we can start to get this in place! We're going to need to update the code to ensure that it only fires when Facter 4 is in play and then we'll need to figure out how to tell users to confine it and add it to the README. |
Is there some documentation you can point me towards to get up to speed on facter4 confinement? |
@jcpunk Heh, not really. I'm hoping that chucking the whole thing in something like Hitting the Puppet Slack dev channel might be a good start though. |
A list of connected USB devices can come in handy (for things like webcams).