patchman


Namepatchman JSON
Version 3.0.8 PyPI version JSON
download
home_pagehttp://patchman.openbytes.ie/
SummaryDjango based patch status monitoring tool for linux systems
upload_time2024-02-05 03:48:17
maintainer
docs_urlNone
authorMarcus Furlong
requires_python
licenseGPLv3
keywords django patch status monitoring linux spacewalk patchman
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Patchman


## Summary

Patchman is a Django-based patch status monitoring tool for linux systems.
Patchman provides a web interface for monitoring the package updates available
for linux hosts.

[![](https://raw.githubusercontent.com/furlongm/patchman/gh-pages/screenshots/dashboard.png)](https://github.com/furlongm/patchman/tree/gh-pages/screenshots)


## How does Patchman work?

Patchman clients send a list of installed packages and enabled repositories to
the Patchman server. The Patchman server updates its package list for each
repository and determines which hosts require updates, and whether those updates
are normal or security updates. The web interface also gives information on
potential issues, such as installed packages that are not from any repository.

Hosts, packages, repositories and operating systems can all be filtered. For
example, it is possible to find out which hosts have a certain version of a
package installed, and which repository it comes from.

Patchman does not install update packages on hosts, it determines and displays
what updates are available for each host.

`yum`, `apt` and `zypper` plugins can send reports to the Patchman server every
time packages are installed or removed on a host.


## Installation

See [the installation guide](https://github.com/furlongm/patchman/blob/master/INSTALL.md)
for installation options.


## Usage

The web interface contains a dashboard with items that need attention, and
various pages to manipulate hosts, repositories, packages, operating systems and
reports.

To populate the database, simply run the client on some hosts:

```shell
$ patchman-client -s http://patchman.example.org
```

This should provide some initial data to work with.

On the server, the `patchman` command line utility can be used to run certain
maintenance tasks, e.g. processing the reports sent from hosts, downloading
repository update information from the web. Run `patchman -h` for a rundown of
the usage:

```shell
$ sbin/patchman -h
usage: patchman [-h] [-f] [-q] [-r] [-R REPO] [-lr] [-lh] [-u] [-A] [-H HOST]
                [-p] [-c] [-d] [-n] [-a] [-D hostA hostB]

Patchman CLI tool

optional arguments:
  -h, --help            show this help message and exit
  -f, --force           Ignore stored checksums and force-refresh all mirrors
  -q, --quiet           Quiet mode (e.g. for cronjobs)
  -r, --refresh-repos   Refresh repositories
  -R REPO, --repo REPO  Only perform action on a specific repository (repo_id)
  -lr, --list-repos     List all repositories
  -lh, --list-hosts     List all hosts
  -u, --host-updates    Find host updates
  -A, --host-updates-alt
                        Find host updates (alternative algorithm that may be
                        faster when there are many homogeneous hosts)
  -H HOST, --host HOST  Only perform action on a specific host (fqdn)
  -p, --process-reports
                        Process pending reports
  -c, --clean-reports   Remove all but the last three reports
  -d, --dbcheck         Perform some sanity checks and clean unused db entries
  -n, --dns-checks      Perform reverse DNS checks if enabled for that host
  -a, --all             Convenience flag for -r -A -p -c -d -n
  -D hostA hostB, --diff hostA hostB
                        Show differences between two hosts in diff-like output
  -e, --errata          Download CentOS errata from https://cefs.steve-
                        meier.de/
```

## Dependencies

### Server-side dependencies


```
python3-django
python3-django-tagging
python3-django-extensions
python3-django-bootstrap3
python3-djangorestframework
python3-debian
python3-rpm
python3-progressbar
python3-lxml
python3-defusedxml
python3-requests
python3-colorama
python3-magic
python3-humanize
```

The server can optionally make use of celery to asynchronously process the
reports sent by hosts.


### Client-side dependencies

The client-side dependencies are kept to a minimum. `rpm` and `dpkg` are
required to report packages, `yum`, `dnf`, `zypper` and/or `apt` are required
to report repositories. These packages are normally installed by default on
most systems.

deb-based OS's do not always change the kernel version when a kernel update is
installed, so the `update-notifier-common` package can optionally be installed
to enable this functionality. rpm-based OS's can tell if a reboot is required
to install a new kernel by looking at `uname -r` and comparing it to the
highest installed kernel version, so no extra packages are required on those
OS's.


## Concepts

The default settings will be fine for most people but depending on your setup,
there may be some initial work required to logically organise the data sent in
the host reports. The following explanations may help in this case.

There are a number of basic objects - Hosts, Repositories, Packages, Operating
Systems and Reports. There are also Operating System Groups (which are optional)
and Mirrors.

### Host
A Host is a single host, e.g. test01.example.org.

### Operating System
A Host runs an Operating System, e.g. CentOS 7.7, Debian 10.1, Ubuntu 18.04

### Package
A Package is a package that is either installed on a Host, or is available to
download from a Repository mirror, e.g. `strace-4.8-11.el7.x86_64`,
`grub2-tools-2.02-0.34.el7.centos.x86_64`, etc.

### Mirror
A Mirror is a collection of Packages available on the web, e.g. a `yum`, `yast`
or `apt` repo.

### Repository
A Repository is a collection of Mirrors. Typically all the Mirrors will contain
the same Packages. For Red Hat-based Hosts, Repositories automatically link
their Mirrors together. For Debian-based hosts, you may need to link all
Mirrors that form a Repository using the web interface. This may reduce the
time required to find updates. Repositories can be marked as being security or
non-security. This makes most sense with Debian and Ubuntu repositories where
security updates are delivered via security repositories. For CentOS security
updates, see the Erratum section below.

### Report
A Host creates a Report using `patchman-client`. This Report is sent to the
Patchman server. The Report contains the Host's Operating System, and lists
of the installed Packages and enabled Repositories on the Host. The Patchman
server processes and records the list of Packages and Repositories contained in
the Report.

### Operating System Group (optional)
An OSGroup is a collection of OS's. For example, an OSGroup named "Ubuntu 18.04"
would be comprised of the following OS's:

```
Ubuntu 18.04.1
Ubuntu 18.04.2
Ubuntu 18.04.5
```

Likewise, an OSGroup named "CentOS 7" would be made up of the following OS's:

```
CentOS 7.5
CentOS 7.7.1511
```

Repositories can be associated with an OSGroup, or with the Host itself. If the
`use_host_repos variable` is set to True for a Host, then updates are found by
looking only at the Repositories that belong to that Host. This is the default
behaviour and does not require OSGroups to be configured.

If `use_host_repos` is set to False, the update-finding process looks at the
OSGroup that the Host's Operating System is in, and uses the OSGroup's
Repositories to determine the applicable updates. This is useful in environments
where many hosts are homogeneous (e.g. cloud/cluster environments).

### Erratum
Errata for CentOS can be downloaded from https://cefs.steve-meier.de/ .
These errata are parsed and stored in the database. If a PackageUpdate
contains a package that is a security update in the errata, then that update is
marked as being a security update.

            

Raw data

            {
    "_id": null,
    "home_page": "http://patchman.openbytes.ie/",
    "name": "patchman",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django patch status monitoring linux spacewalk patchman",
    "author": "Marcus Furlong",
    "author_email": "furlongm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/40/8d/4e10ba68eda52be9f583e1e7928346b33b3ee38427f069cd33d5b907b651/patchman-3.0.8.tar.gz",
    "platform": null,
    "description": "# Patchman\n\n\n## Summary\n\nPatchman is a Django-based patch status monitoring tool for linux systems.\nPatchman provides a web interface for monitoring the package updates available\nfor linux hosts.\n\n[![](https://raw.githubusercontent.com/furlongm/patchman/gh-pages/screenshots/dashboard.png)](https://github.com/furlongm/patchman/tree/gh-pages/screenshots)\n\n\n## How does Patchman work?\n\nPatchman clients send a list of installed packages and enabled repositories to\nthe Patchman server. The Patchman server updates its package list for each\nrepository and determines which hosts require updates, and whether those updates\nare normal or security updates. The web interface also gives information on\npotential issues, such as installed packages that are not from any repository.\n\nHosts, packages, repositories and operating systems can all be filtered. For\nexample, it is possible to find out which hosts have a certain version of a\npackage installed, and which repository it comes from.\n\nPatchman does not install update packages on hosts, it determines and displays\nwhat updates are available for each host.\n\n`yum`, `apt` and `zypper` plugins can send reports to the Patchman server every\ntime packages are installed or removed on a host.\n\n\n## Installation\n\nSee [the installation guide](https://github.com/furlongm/patchman/blob/master/INSTALL.md)\nfor installation options.\n\n\n## Usage\n\nThe web interface contains a dashboard with items that need attention, and\nvarious pages to manipulate hosts, repositories, packages, operating systems and\nreports.\n\nTo populate the database, simply run the client on some hosts:\n\n```shell\n$ patchman-client -s http://patchman.example.org\n```\n\nThis should provide some initial data to work with.\n\nOn the server, the `patchman` command line utility can be used to run certain\nmaintenance tasks, e.g. processing the reports sent from hosts, downloading\nrepository update information from the web. Run `patchman -h` for a rundown of\nthe usage:\n\n```shell\n$ sbin/patchman -h\nusage: patchman [-h] [-f] [-q] [-r] [-R REPO] [-lr] [-lh] [-u] [-A] [-H HOST]\n                [-p] [-c] [-d] [-n] [-a] [-D hostA hostB]\n\nPatchman CLI tool\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f, --force           Ignore stored checksums and force-refresh all mirrors\n  -q, --quiet           Quiet mode (e.g. for cronjobs)\n  -r, --refresh-repos   Refresh repositories\n  -R REPO, --repo REPO  Only perform action on a specific repository (repo_id)\n  -lr, --list-repos     List all repositories\n  -lh, --list-hosts     List all hosts\n  -u, --host-updates    Find host updates\n  -A, --host-updates-alt\n                        Find host updates (alternative algorithm that may be\n                        faster when there are many homogeneous hosts)\n  -H HOST, --host HOST  Only perform action on a specific host (fqdn)\n  -p, --process-reports\n                        Process pending reports\n  -c, --clean-reports   Remove all but the last three reports\n  -d, --dbcheck         Perform some sanity checks and clean unused db entries\n  -n, --dns-checks      Perform reverse DNS checks if enabled for that host\n  -a, --all             Convenience flag for -r -A -p -c -d -n\n  -D hostA hostB, --diff hostA hostB\n                        Show differences between two hosts in diff-like output\n  -e, --errata          Download CentOS errata from https://cefs.steve-\n                        meier.de/\n```\n\n## Dependencies\n\n### Server-side dependencies\n\n\n```\npython3-django\npython3-django-tagging\npython3-django-extensions\npython3-django-bootstrap3\npython3-djangorestframework\npython3-debian\npython3-rpm\npython3-progressbar\npython3-lxml\npython3-defusedxml\npython3-requests\npython3-colorama\npython3-magic\npython3-humanize\n```\n\nThe server can optionally make use of celery to asynchronously process the\nreports sent by hosts.\n\n\n### Client-side dependencies\n\nThe client-side dependencies are kept to a minimum. `rpm` and `dpkg` are\nrequired to report packages, `yum`, `dnf`, `zypper` and/or `apt` are required\nto report repositories. These packages are normally installed by default on\nmost systems.\n\ndeb-based OS's do not always change the kernel version when a kernel update is\ninstalled, so the `update-notifier-common` package can optionally be installed\nto enable this functionality. rpm-based OS's can tell if a reboot is required\nto install a new kernel by looking at `uname -r` and comparing it to the\nhighest installed kernel version, so no extra packages are required on those\nOS's.\n\n\n## Concepts\n\nThe default settings will be fine for most people but depending on your setup,\nthere may be some initial work required to logically organise the data sent in\nthe host reports. The following explanations may help in this case.\n\nThere are a number of basic objects - Hosts, Repositories, Packages, Operating\nSystems and Reports. There are also Operating System Groups (which are optional)\nand Mirrors.\n\n### Host\nA Host is a single host, e.g. test01.example.org.\n\n### Operating System\nA Host runs an Operating System, e.g. CentOS 7.7, Debian 10.1, Ubuntu 18.04\n\n### Package\nA Package is a package that is either installed on a Host, or is available to\ndownload from a Repository mirror, e.g. `strace-4.8-11.el7.x86_64`,\n`grub2-tools-2.02-0.34.el7.centos.x86_64`, etc.\n\n### Mirror\nA Mirror is a collection of Packages available on the web, e.g. a `yum`, `yast`\nor `apt` repo.\n\n### Repository\nA Repository is a collection of Mirrors. Typically all the Mirrors will contain\nthe same Packages. For Red Hat-based Hosts, Repositories automatically link\ntheir Mirrors together. For Debian-based hosts, you may need to link all\nMirrors that form a Repository using the web interface. This may reduce the\ntime required to find updates. Repositories can be marked as being security or\nnon-security. This makes most sense with Debian and Ubuntu repositories where\nsecurity updates are delivered via security repositories. For CentOS security\nupdates, see the Erratum section below.\n\n### Report\nA Host creates a Report using `patchman-client`. This Report is sent to the\nPatchman server. The Report contains the Host's Operating System, and lists\nof the installed Packages and enabled Repositories on the Host. The Patchman\nserver processes and records the list of Packages and Repositories contained in\nthe Report.\n\n### Operating System Group (optional)\nAn OSGroup is a collection of OS's. For example, an OSGroup named \"Ubuntu 18.04\"\nwould be comprised of the following OS's:\n\n```\nUbuntu 18.04.1\nUbuntu 18.04.2\nUbuntu 18.04.5\n```\n\nLikewise, an OSGroup named \"CentOS 7\" would be made up of the following OS's:\n\n```\nCentOS 7.5\nCentOS 7.7.1511\n```\n\nRepositories can be associated with an OSGroup, or with the Host itself. If the\n`use_host_repos variable` is set to True for a Host, then updates are found by\nlooking only at the Repositories that belong to that Host. This is the default\nbehaviour and does not require OSGroups to be configured.\n\nIf `use_host_repos` is set to False, the update-finding process looks at the\nOSGroup that the Host's Operating System is in, and uses the OSGroup's\nRepositories to determine the applicable updates. This is useful in environments\nwhere many hosts are homogeneous (e.g. cloud/cluster environments).\n\n### Erratum\nErrata for CentOS can be downloaded from https://cefs.steve-meier.de/ .\nThese errata are parsed and stored in the database. If a PackageUpdate\ncontains a package that is a security update in the errata, then that update is\nmarked as being a security update.\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Django based patch status monitoring tool for linux systems",
    "version": "3.0.8",
    "project_urls": {
        "Homepage": "http://patchman.openbytes.ie/"
    },
    "split_keywords": [
        "django",
        "patch",
        "status",
        "monitoring",
        "linux",
        "spacewalk",
        "patchman"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a8b8e29ce2ce06ce1c3360f4847c2ebbddf9e62dd28ab346ac111a7cd941fc8e",
                "md5": "2f0bffb75f4aba735899f3b80051b259",
                "sha256": "2b5bfe3d5dedcb4dd98106ff405760f32585e82edc8fff1e3442295e0adf2de1"
            },
            "downloads": -1,
            "filename": "patchman-3.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f0bffb75f4aba735899f3b80051b259",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 316739,
            "upload_time": "2024-02-05T03:48:15",
            "upload_time_iso_8601": "2024-02-05T03:48:15.824668Z",
            "url": "https://files.pythonhosted.org/packages/a8/b8/e29ce2ce06ce1c3360f4847c2ebbddf9e62dd28ab346ac111a7cd941fc8e/patchman-3.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "408d4e10ba68eda52be9f583e1e7928346b33b3ee38427f069cd33d5b907b651",
                "md5": "8bff9cea5aef1ebb6a62763c2a3093ec",
                "sha256": "e750181ea3013410b9bd3fc182e96c6a8281fbbd039a243a1cf7c9cd707cab44"
            },
            "downloads": -1,
            "filename": "patchman-3.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "8bff9cea5aef1ebb6a62763c2a3093ec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 97708,
            "upload_time": "2024-02-05T03:48:17",
            "upload_time_iso_8601": "2024-02-05T03:48:17.758960Z",
            "url": "https://files.pythonhosted.org/packages/40/8d/4e10ba68eda52be9f583e1e7928346b33b3ee38427f069cd33d5b907b651/patchman-3.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-05 03:48:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "patchman"
}
        
Elapsed time: 0.17889s