Skip to main content

Outputs a dynamic inventory of Docker containers for Ansible.

Project description

Docker Dynamic Inventory

Documentation Status

Generates a dynamic inventory of Docker containers for Ansible.

Features

  • Able to filter out a single host by name.
  • Optionally includes Docker metadata in Ansible’s hostvars.
  • Optionally pretty-prints output for readability.
  • Operates on the local Docker instance by default but can work with a remote host as well.
  • Can be used as a Python module (if you really want to)

Usage

Usage: docker-dynamic-inventory [OPTIONS]

Dynamic inventories of Docker containers, served up fresh just for
Ansible.

Options:
  --host TEXT                 Only match containers with this name.
  --metadata / --no-metadata  Include container metadata.
  --pretty / --ugly           Pretty print JSON for output.
  --docker_tls TEXT           Use TLS for Docker connections.
  --docker_host TEXT          Docker host to connect to.
  --help                      Show this message and exit.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-02-23)

  • First release on PyPI.

Project details


Release history Release notifications

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.2

History Node

0.1.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
docker_dynamic_inventory-0.1.5-py2.py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 12, 2018
docker-dynamic-inventory-0.1.5.tar.gz (14.9 kB) Copy SHA256 hash SHA256 Source None Mar 12, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page