docker-dynamic-inventory-0.1.5
توضیحات
Outputs a dynamic inventory of Docker containers for Ansible.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | docker-dynamic-inventory-0.1.5 |
| نام | docker-dynamic-inventory |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Shaun Martin |
| ایمیل نویسنده | shaun@samsite.ca |
| آدرس صفحه اصلی | https://github.com/inhumantsar/python-docker-dynamic-inventory |
| آدرس اینترنتی | https://pypi.org/project/docker-dynamic-inventory/ |
| مجوز | BSD license |
========================
Docker Dynamic Inventory
========================
.. image:: https://img.shields.io/pypi/v/docker_dynamic_inventory.svg
:target: https://pypi.python.org/pypi/docker_dynamic_inventory
.. image:: https://img.shields.io/travis/inhumantsar/docker_dynamic_inventory.svg
:target: https://travis-ci.org/inhumantsar/docker_dynamic_inventory
.. image:: https://readthedocs.org/projects/docker-dynamic-inventory/badge/?version=latest
:target: https://docker-dynamic-inventory.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Generates a dynamic inventory of Docker containers for Ansible.
* Free software: BSD license
* Documentation: https://docker-dynamic-inventory.readthedocs.io.
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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.1.0 (2018-02-23)
------------------
* First release on PyPI.
نیازمندی
| مقدار | نام |
|---|---|
| ==3.1.0 | docker |
| ==6.7 | click |
نحوه نصب
نصب پکیج whl docker-dynamic-inventory-0.1.5:
pip install docker-dynamic-inventory-0.1.5.whl
نصب پکیج tar.gz docker-dynamic-inventory-0.1.5:
pip install docker-dynamic-inventory-0.1.5.tar.gz