{ "info": { "author": "Andr\u00e9 Gaul", "author_email": "andre@gaul.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: System :: Systems Administration" ], "description": "Ansible EC2 inventory\n=====================\n\nThis Python module is based on the [original Ansible EC2 inventory\nscript](https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py)\nthat is linked in the [Ansible\ndocs](http://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script).\n\nThe Python module in this repo fixes a few issues by being\n\n- installable via `pip` / PyPi: no need to place code from the Ansible\n repo in your inventory.\n- extendable for your needs: the class `Ec2Inventory` can be used as a\n base class for customizations.\n\nInstallation\n------------\n\n pip install ansible-ec2-inventory\n\nUsage\n-----\n\n### As a script\n\n ansible-ec2-inventory --config ec2.ini\n\n*Note:* if you want to provide a boto profile, prefix the command with\n`AWS_PROFILE=myprofile`.\n\n### As a Python module\n\nExample:\n\n``` {.python}\nfrom ansible_ec2_inventory import Ec2Inventory\nimport json\n\ndef main():\n # get path of ec2.ini\n path = os.path.dirname(os.path.realpath(__file__))\n\n # get inventory\n ec2inventory = Ec2Inventory(configfile=path + '/ec2.ini')\n data = ec2inventory.get_inventory()\n\n # print json\n print(json.dumps(data, sort_keys=True, indent=2))\n\nif __name__ == '__main__':\n main()\n```", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/ansible-ec2-inventory", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/paperhive/ansible-ec2-inventory", "keywords": null, "license": "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "maintainer": null, "maintainer_email": null, "name": "ansible-ec2-inventory", "package_url": "https://pypi.org/project/ansible-ec2-inventory/", "platform": "any", "project_url": "https://pypi.org/project/ansible-ec2-inventory/", "project_urls": { "Download": "https://pypi.python.org/pypi/ansible-ec2-inventory", "Homepage": "https://github.com/paperhive/ansible-ec2-inventory" }, "release_url": "https://pypi.org/project/ansible-ec2-inventory/0.1.8/", "requires_dist": null, "requires_python": null, "summary": "Extendable Python module for ansible EC2 inventories", "version": "0.1.8" }, "last_serial": 2116811, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "241f1a9fd249fec893c11d03e47afb59", "sha256": "860c5f5ad278c7c0a64e2361c6692f3993f7ced970c2b74dfc94bbd8a0f316cc" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.0.tar.gz", "has_sig": true, "md5_digest": "241f1a9fd249fec893c11d03e47afb59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12555, "upload_time": "2016-01-23T18:21:05", "url": "https://files.pythonhosted.org/packages/0d/aa/cdabc34ebf9118827adf79114d42730d433e411118288d154d291e909064/ansible-ec2-inventory-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3b382604b4f9a3d8e87fe66b0410a01f", "sha256": "afc1934872cd019676764aa1c00180091a67b62dbf5cc12f3754641143f1c318" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.1.tar.gz", "has_sig": true, "md5_digest": "3b382604b4f9a3d8e87fe66b0410a01f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12768, "upload_time": "2016-01-23T21:51:56", "url": "https://files.pythonhosted.org/packages/ba/91/b717eca994c4afe6a8fc7770d7ea346f5a76136f9e2e866938940f25df1c/ansible-ec2-inventory-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "356e476619c2a167b4922276e82419a9", "sha256": "844d88dd2a4d7d76930b6d5f3fc8395157d446be0d24dc861c614fb48e6d7404" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.2.tar.gz", "has_sig": true, "md5_digest": "356e476619c2a167b4922276e82419a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12770, "upload_time": "2016-01-23T21:55:27", "url": "https://files.pythonhosted.org/packages/60/10/c4c9b286d30e04dc41bcf45bd7721fde240ec1f8aa9b8d69b945d51c6490/ansible-ec2-inventory-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "19be6046efb07dc19a9c487712d10037", "sha256": "2b58be654a478c0b7b174f1edef38b6e592701001cfe9484129e85c59a793c2b" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.3.tar.gz", "has_sig": true, "md5_digest": "19be6046efb07dc19a9c487712d10037", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13301, "upload_time": "2016-01-23T22:00:08", "url": "https://files.pythonhosted.org/packages/75/c9/03d0261fc00d0d84b3a01bb7e76249a667b6bb270773d4b4885be3ec4866/ansible-ec2-inventory-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "aca0ef2d6bf87f1965f99b390c874695", "sha256": "7e0a2f9a17e2aa932e47c75c90c007de2313ef36f8d18e0bf4b77e83a54e6245" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.4.tar.gz", "has_sig": true, "md5_digest": "aca0ef2d6bf87f1965f99b390c874695", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13349, "upload_time": "2016-01-24T09:27:17", "url": "https://files.pythonhosted.org/packages/ef/30/bf5ebcfb15d0e5b26a6dbfb57bd04e7bd1d4154c8cf29e3bdbda2bf9fa08/ansible-ec2-inventory-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "160256879a78abebaa877cf6d9d98fa9", "sha256": "3d64f7a9e9d66e704d330f5df833e5fdf842831338bbd6a56d4c52130e0e59a3" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.5.tar.gz", "has_sig": true, "md5_digest": "160256879a78abebaa877cf6d9d98fa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13757, "upload_time": "2016-04-24T11:16:14", "url": "https://files.pythonhosted.org/packages/0d/6a/99e691ff209baa37d6eed9413df4d4f352a118cb358578b90642c05291dd/ansible-ec2-inventory-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "82e6131b4ae5c9c943c588c747954508", "sha256": "17940b105ce66dc231c3f1f9ebd24b528505e527a4982269160b0caa5703f080" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.6.tar.gz", "has_sig": true, "md5_digest": "82e6131b4ae5c9c943c588c747954508", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13756, "upload_time": "2016-04-24T11:18:18", "url": "https://files.pythonhosted.org/packages/36/43/af674193f4ec33fd18d5cd82f26d11fba757ce8cf314c9b447e43048ce01/ansible-ec2-inventory-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "898a0dd8562d2d80a9ef483058a72256", "sha256": "4ab066bbaef63f1421531182de137e140364f7fb994e9fe419bd2a1efa52824b" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.7.tar.gz", "has_sig": true, "md5_digest": "898a0dd8562d2d80a9ef483058a72256", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13927, "upload_time": "2016-05-15T16:46:06", "url": "https://files.pythonhosted.org/packages/ca/e9/20475fea9bd0d4902e172d6c1e18e950a41b3af7352680e858354232b285/ansible-ec2-inventory-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "a0b1d48bf09860b766e554335067def9", "sha256": "d1ad5bc371cea5b729635f1e8ef1f17737144bd4140b819e8719d052a6025f7d" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.8.tar.gz", "has_sig": true, "md5_digest": "a0b1d48bf09860b766e554335067def9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13924, "upload_time": "2016-05-15T17:00:24", "url": "https://files.pythonhosted.org/packages/88/d2/40aafcb87a7b97a0196dd7aa76fb19db9c303659bd7d0d8051800b737d08/ansible-ec2-inventory-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a0b1d48bf09860b766e554335067def9", "sha256": "d1ad5bc371cea5b729635f1e8ef1f17737144bd4140b819e8719d052a6025f7d" }, "downloads": -1, "filename": "ansible-ec2-inventory-0.1.8.tar.gz", "has_sig": true, "md5_digest": "a0b1d48bf09860b766e554335067def9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13924, "upload_time": "2016-05-15T17:00:24", "url": "https://files.pythonhosted.org/packages/88/d2/40aafcb87a7b97a0196dd7aa76fb19db9c303659bd7d0d8051800b737d08/ansible-ec2-inventory-0.1.8.tar.gz" } ] }