yum-plugin for fusioninventory-agent
+
Par Remi le jeudi 30 décembre 2010, 11:46 - RPM - Lien permanent
I have just written a small plugin for yum to ask the running agent to send an inventory when a yum operation finish.
RPM is available in the remi repository for fedora >= 12 and Enterprise Linux >= 4.
This feature is registered on upstream project : Feature #530
Installation
yum --enablerepo=remi install fusioninventory-agent-yum-plugin
This feature requires that the service run with the --rpc-trust-localhost option. An inventory will be ask after each yum transaction (install, remove, ...), See, in the /etc/sysconfig/fusioninventory-agent file the line:
FUSINVOPT='--debug --rpc-trust-localhost'
Example :
# yum update
Loaded plugins: fastestmirror, fusioninventory-agent
Loading mirror speeds from cached hostfile
... Transaction Test Succeeded
Running Transaction
Updating : fusioninventory-agent 1/2
Cleanup : fusioninventory-agent 2/2
FusionInventory agent asked to run an inventory
...
If you are interested : the plugin source.
Of course, I'm waiting for your feedback.
Commentaires
Commited!
http://gitorious.org/fusioninventor...
The plugin will be in the contrib/yum directory for the 2.1.8 release :)
The EL-4 RPM is now also available.
https://github.com/fusinv/fusioninv...