Coder Social home page Coder Social logo

philippfe / katprep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stdevel/katprep

0.0 1.0 0.0 1.19 MB

Python toolkit for automating system maintenance and generating patch reports along with Foreman/Katello and Red Hat Satellite 6.x

License: GNU General Public License v3.0

Python 98.49% HTML 1.11% Dockerfile 0.24% Shell 0.16%

katprep's Introduction

Build Status codecov

katprep

katprep is a Python toolkit for automating system maintenance and generating patch reports for systems managed with Foreman/Katello or Red Hat Satellite 6.x.

This can be very useful if you need to document software changes due to IT certifications like ISO/IEC 27001:2005 or many other.

katprep can automate the following infrastructure tasks:

  • create/remove virtual machine snapshots hypervisor independently (e.g. VMware vSphere, KVM, XEN, Hyper-V,...) by utilizing libvirt and the VMware vSphere Python API bindings (pyVmomi)
  • schedule/remove downtimes within your monitoring system (Nagios/Icinga, Icinga2)
  • patch and reboot affected systems
  • document system changes in a customizable report by utilizing Pandoc (HTML, Markdown,...)

This software is a complete rewrite of my other toolkit satprep.

Documentation and contribution

The project documentation is created automatically using Sphinx - it can be found in the doc folder of this repository. Check-out this website for an online mirror.

You want to contribute? That's great! Please check-out the Issues tab of this project and share your thoughts/ideas in a new issue - also, pull requests are welcome!

How does this work?

katprep uses Puppet host parameters to assign additional meta information to systems managed with Foreman/Katello or Red Hat Satellite such as:

  • monitoring/virtualization system managing the host
  • differing object names within those systems
  • snapshots required before system maintenance

katprep workflow

If you plan to execute maintenance tasks, katprep triggers (katprep_maintenance utility) monitoring and virtualization hosts to schedule downtimes and create VM snapshots. Once these tasks have been completed, katprep can automatically trigger the patch installation and system reboot. After verifying your systems, katprep can remove downtimes and snapshots automatically. Before and after patching systems, it is necessary to create an inventory report of your system landscape. These reports contain information such as outstanding patches - after patching your systems, the katprep_report utility automatically calculares differences and creates patch reports for all updated hosts.

As a result, patching big system landscapes becomes less time-consuming with katprep: it's only executing three commands - independent whether you are patching 1 host or 1000 hosts.

To make the installation even easier, an auto-discover functionality can scan your monitoring systems and hypervisors and link gathered information with Foreman/Katello and Red Hat Satellite automatically (katprep_populate).

katprep's People

Contributors

stdevel avatar okin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.