Comments (3)
I might be misunderstanding your comments, but I think we already have a way to do what you are looking for. In order to support a 'general' plugin for Ubuntu a few things need to happen:
First a ubuntu Policy class must be defined in order to identify a Ubuntu system (and abstract away the package manager bits). See How To Write a Policy for more info (though this page is certainly lacking.)
Secondly, a second class should be defined in the general.py module and be tagged with a UbuntuPlugin tagging class (which also needs to be defined and used by the Ubuntu policy class.)
Another bit to notice is the .name() method that each plugin class now has. If you have several implementations of a plugin (one per distro for example), you can refer to whichever one loaded by the same name as long as you define the name() method in each subclass and have it return the name you would like to use. Something like this:
class myPlugin(RedHatPlugin, Plugin):
def name(self):
return "myplugin"
class myUbuntuPlugin(UbuntuPlugin, Plugin):
def name(self):
return "myplugin"
from sos.
Ah ok let me look into that more and ill close this bug out if i can get it working.
Thanks!
from sos.
Can subclass additional policies for separation of plugins per distro
from sos.
Related Issues (20)
- [ubuntu] `msr` module being loaded while running a basic sosreport HOT 1
- [RFE] speedup journal export HOT 5
- [RFE] collect kubernetes informations for kubeadm installs HOT 2
- [ubuntu] snap causing issues on 18.04
- sos.conf options dont match cmdline options HOT 3
- Using maxage argument in PlugIn's add_copy_spec raises an exception
- There are no plugin to gater K8s/OCP rotated logs
- [snaps] when using `--all-logs` some command outputs will not be collected HOT 2
- An uncaught exception when add_copy_spec adds big files twice and reaches sizelimit HOT 2
- [RFE] Set a UserAgent for --upload-protocol s3 HOT 2
- [snap-workflow] snap workflow doesn't work due to snap/action-build with ubuntu 24.04
- sos spec file needs to remove python3-magic file under RH9 release HOT 9
- [RFE] add the output of “ps auxfwww” to the report HOT 2
- [RFE] Add some networking related command outputs HOT 3
- [sunbeam] sosreport is not obfuscating ceilometer secrets when running the sunbeam plugin
- [cleaner] periodic cleanup of mapping files.
- [MAC cleaner] too relaxed IPV6_REG_4HEX matching UUIDs HOT 7
- Missing documentation related to node, extra, presets file formats/examples HOT 4
- Enable "Require branches to be up to date before merging"
- [cleaner] keyword_map obfuscation is incremented when the same keyword is provided more then once.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sos.