Skip to main content

Sync hostlist and builds config files for services.

Project description

Hostlist reads yaml lists with information about hosts and generates config files and inventory for several services.

Configuration

The main configuration is based on a config.yml file in the working directory. Hostlists are collected in a directory listed in config.yml.

Services

At the moment the supported services are:

  • /etc/hosts, can also be used for dnsmasq

  • dhcpd

  • ansible inventory

  • munin

  • ssh_known_hosts generation

DNSVS Synchronization

Besides generating config files, the hostlist can also be synchronized against DNSVS, which is the dns management system used by https://www.scc.kit.edu.

Tests

To run the unit tests:

nosetest tests

Contribute

Feel free to use the code and adjust it to your needs. Pull requests are welcome!

Style guide

The code should obey PEP8 (as enforced by flake8 or pylint) when possible.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

hostlist-1.0.2-py3-none-any.whl (52.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page