Skip to content

Script to schedule remote execution jobs for installing available errata and reboot after updates that require reboot.

License

Notifications You must be signed in to change notification settings

RedHatSatellite/sat6-rex-patching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

sat6-rex-patching

Script to schedule remote execution jobs for installing available errata and reboot after updates that require reboot.

Example usage

Copy the script to your Satellite server (if you want to run it from another server, you have to change the URL in the code from "localhost" to your Satellite hostname).

Read the help text so see what information you need to provide:

./sat6-rex-patching.py --help

First run without "--apply" to see that the resulting jobs looks OK:

./sat6-rex-patching.py --satellite sat6.example.com --username admin --password redhat --organization My_Org --host-collection Test --apply-time "2017-11-11 11:11:11" --reboot-time "2017-11-12 11:11:11"

Then run with "--apply" to actually schedule the jobs:

./sat6-rex-patching.py --satellite sat6.example.com --username admin --password redhat --organization My_Org --host-collection Test --apply-time "2017-11-11 11:11:11" --reboot-time "2017-11-12 11:11:11" --apply

Note

This script is errata centric, which means that updates that does not have any errata attached to it won't get installed. If you rather need to apply "yum -y update" in your environment, then that can be accomplished as well by changing the job template that is used.

About

Script to schedule remote execution jobs for installing available errata and reboot after updates that require reboot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages