Twhitehouse-SSHIS / spacewalk-ubuntu-errata

Ubuntu Errata Import for Spacewalk/Uyuni

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:Python 88.7%Language:Shell 11.3%