Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543130 - app-admin/ansible - add support for external libraries
Summary: app-admin/ansible - add support for external libraries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-13 10:49 UTC by Tomáš Mózes
Modified: 2015-03-16 10:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2015-03-13 10:49:48 UTC
Some ansible commands require external libraries, like:

http://docs.ansible.com/redis_module.html
Requires the redis-py Python package on the remote host.

http://docs.ansible.com/postgresql_db_module.html
This module uses psycopg2, a Python PostgreSQL database adapter.

Would be nice if we could add USEs and the corresponding deps. Maybe easy ones like redis and postgres for starters.
Comment 1 Tomáš Mózes 2015-03-13 11:01:50 UTC
--- /usr/portage/app-admin/ansible/ansible-1.8.4.ebuild 2015-02-20 08:46:57.000000000 +0100
+++ ansible-1.8.4-r1.ebuild     2015-03-13 11:59:16.517301179 +0100
@@ -15,12 +15,15 @@
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~x64-macos"
+IUSE="postgres redis"
 
 RDEPEND="
        dev-python/jinja[${PYTHON_USEDEP}]
        dev-python/pyyaml[${PYTHON_USEDEP}]
        net-misc/sshpass
        virtual/ssh
+       postgres? ( dev-python/psycopg[${PYTHON_USEDEP}] )
+       redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
 "
 
 python_install_all() {
Comment 2 Tomáš Mózes 2015-03-16 10:11:43 UTC
The libs are needed on the client side, so this would only help locally deployed stuff, can be ommited.