Difference between revisions of "SUSE Manager/SaltPkgsetBeacon"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Created page with "= Summary = The <code>pkgset</code> beacon keeps the Package List updated for a system registered in SUMA when the user performs a manual package installation via command lin...")
 
(How it work)
 
Line 3: Line 3:
 
The <code>pkgset</code> beacon keeps the Package List updated for a system registered in SUMA when the user performs a manual package installation via command line (using zypper or yum).
 
The <code>pkgset</code> beacon keeps the Package List updated for a system registered in SUMA when the user performs a manual package installation via command line (using zypper or yum).
  
= How it work =
+
= How it works =
  
 
This beacon works together with a <code>zypper</code> or <code>yum</code> plugin (depending if system is SLE or RHEL). Plugin and beacon are provided to the minion during the registration process.
 
This beacon works together with a <code>zypper</code> or <code>yum</code> plugin (depending if system is SLE or RHEL). Plugin and beacon are provided to the minion during the registration process.
  
 
Both <code>zypper</code> and <code>yum</code> plugins have the same behavior, they are triggered everytime the RPM database is updated (after a transaction) and extract the checksum and mtime from the RPM database <code>/var/lib/rpm/Packages</code>. This data is stored into a cookie file in <code>/var/cache/salt/minion/rpmdb.cookie</code>, then <code>pkgset</code> beacon knows if changes have been done into the RPM database and will trigger an event to SUMA in order to update the package list for this minion.
 
Both <code>zypper</code> and <code>yum</code> plugins have the same behavior, they are triggered everytime the RPM database is updated (after a transaction) and extract the checksum and mtime from the RPM database <code>/var/lib/rpm/Packages</code>. This data is stored into a cookie file in <code>/var/cache/salt/minion/rpmdb.cookie</code>, then <code>pkgset</code> beacon knows if changes have been done into the RPM database and will trigger an event to SUMA in order to update the package list for this minion.

Latest revision as of 11:25, 20 September 2016

Summary

The pkgset beacon keeps the Package List updated for a system registered in SUMA when the user performs a manual package installation via command line (using zypper or yum).

How it works

This beacon works together with a zypper or yum plugin (depending if system is SLE or RHEL). Plugin and beacon are provided to the minion during the registration process.

Both zypper and yum plugins have the same behavior, they are triggered everytime the RPM database is updated (after a transaction) and extract the checksum and mtime from the RPM database /var/lib/rpm/Packages. This data is stored into a cookie file in /var/cache/salt/minion/rpmdb.cookie, then pkgset beacon knows if changes have been done into the RPM database and will trigger an event to SUMA in order to update the package list for this minion.