Skip to content

Twhitehouse-SSHIS/spacewalk-ubuntu-errata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacewalk/Uyuni Errata Import for Ubuntu

Modified version of https://github.com/philicious/spacewalk-scripts

This script will download errata information from Ubuntu, parse it, and import it into a spacewalk or Uyuni server for use as patch data. This allows you to see if an update contains a bugfix, security update, etc.

Requirements

  • Python
  • An administrative account on your Spacewalk/Uyuni server

Usage

First, clone the repository onto the Uyuni server git clone https://github.com/Twhitehouse-SSHIS/spacewalk-ubuntu-errata /opt/spacewalk-ubuntu-errata Ensure the files are executable by root.

Secondly, edit the errata-import.py script and modify the login and passwd at the top of the script. This needs to be an administrative account on Spacewalk/Uyuni

Thirdly, amend the excluded/included channels as necessary. The defaults are Uyuni's 1806 default channel names.

Finally, run the errata-sync.sh script either with or without the "all" switch, and add it to your CRON as appropriate, I suggest daily, early in the morning.

Example:

Run this at least once To sync data from the first full month of Ubuntu updates /opt/spacewalk-ubuntu-errata/errata-sync.sh all

Run this moving forward (This should be your CRON command) To sync data from the current calendar month ONLY /opt/spacewalk-ubuntu-errata/errata-sync.sh

Cron Entry 0 2 * * * root /bin/bash /opt/spacewalk-ubuntu-errata/errata-sync.sh

About

Ubuntu Errata Import for Spacewalk/Uyuni

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.7%
  • Shell 11.3%