From ba3989d60a7fa4c7406070d3974cf39288585b76 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Sun, 9 Sep 2012 08:59:42 +0000 Subject: Initial commit, fixes bug #434104. Ebuilds by Krzysztof Tomczyk and Georgy Kovtunov. The latter will be maintainer by proxy (Portage version: 2.2.0_alpha124/cvs/Linux x86_64) --- app-admin/ansible/ChangeLog | 12 ++++++ app-admin/ansible/ansible-0.7.ebuild | 60 +++++++++++++++++++++++++++ app-admin/ansible/ansible-9999.ebuild | 77 +++++++++++++++++++++++++++++++++++ app-admin/ansible/files/ansible.env | 2 + app-admin/ansible/metadata.xml | 19 +++++++++ 5 files changed, 170 insertions(+) create mode 100644 app-admin/ansible/ChangeLog create mode 100644 app-admin/ansible/ansible-0.7.ebuild create mode 100644 app-admin/ansible/ansible-9999.ebuild create mode 100644 app-admin/ansible/files/ansible.env create mode 100644 app-admin/ansible/metadata.xml (limited to 'app-admin') diff --git a/app-admin/ansible/ChangeLog b/app-admin/ansible/ChangeLog new file mode 100644 index 000000000000..9a1e536f2f74 --- /dev/null +++ b/app-admin/ansible/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-admin/ansible +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ChangeLog,v 1.1 2012/09/09 08:59:42 pinkbyte Exp $ + +*ansible-9999 (09 Sep 2012) +*ansible-0.7 (09 Sep 2012) + + 09 Sep 2012; Sergey Popov +ansible-0.7.ebuild, + +ansible-9999.ebuild, +files/ansible.env, +metadata.xml: + Initial commit, fixes bug #434104. Ebuilds by Krzysztof Tomczyk and Georgy + Kovtunov. The latter will be maintainer by proxy + diff --git a/app-admin/ansible/ansible-0.7.ebuild b/app-admin/ansible/ansible-0.7.ebuild new file mode 100644 index 000000000000..a1d46097ff9c --- /dev/null +++ b/app-admin/ansible/ansible-0.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-0.7.ebuild,v 1.1 2012/09/09 08:59:42 pinkbyte Exp $ + +EAPI="4" + +PYTHON_COMPAT="python2_6 python2_7" + +inherit distutils + +DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework" +HOMEPAGE="http://ansible.github.com/" +SRC_URI="mirror://github/ansible/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" +IUSE="examples paramiko +sudo" + +# Stable version fails almost all quality tests +RESTRICT="test" + +DEPEND="" +RDEPEND="${DEPEND} + dev-python/jinja + dev-python/pyyaml + paramiko? ( dev-python/paramiko ) + !paramiko? ( virtual/ssh ) + sudo? ( app-admin/sudo ) +" + +src_install() { + distutils_src_install + + dodir /usr/share/ansible + insinto /usr/share/ansible + doins library/* + + doman docs/man/man1/*.1 + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${P}/examples + fi + + newenvd "${FILESDIR}"/${PN}.env 95ansible + dodir /etc/ansible + insinto /etc/ansible + doins examples/ansible.cfg examples/hosts +} + +pkg_postinst() { + distutils_pkg_postinst + + einfo "You have to create hosts file for user:" + einfo " echo \"127.0.0.1\" > ~/ansible_hosts" + einfo "or global:" + einfo " echo \"127.0.0.1\" > /etc/ansible/hosts" + einfo "" + einfo "More info on http://ansible.github.com/gettingstarted.html" +} diff --git a/app-admin/ansible/ansible-9999.ebuild b/app-admin/ansible/ansible-9999.ebuild new file mode 100644 index 000000000000..b5f942f35628 --- /dev/null +++ b/app-admin/ansible/ansible-9999.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-9999.ebuild,v 1.1 2012/09/09 08:59:42 pinkbyte Exp $ + +EAPI="4" + +PYTHON_COMPAT="python2_6 python2_7" + +EGIT_REPO_URI="git://github.com/ansible/ansible.git" +EGIT_BRANCH="devel" + +inherit distutils git-2 + +DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework" +HOMEPAGE="http://ansible.github.com/" +SRC_URI="" + +KEYWORDS="" +LICENSE="GPL-3" +SLOT="0" +IUSE="examples paramiko +sudo test" + +DEPEND="test? ( + dev-python/nose + dev-vcs/git + ) +" +RDEPEND="dev-python/jinja + dev-python/pyyaml + paramiko? ( dev-python/paramiko ) + !paramiko? ( virtual/ssh ) + sudo? ( app-admin/sudo ) +" + +src_prepare() { + distutils_src_prepare + # Skip tests which need ssh access + sed -i 's:PYTHONPATH=./lib nosetests.*:\0 -e \\(TestPlayBook.py\\|TestRunner.py\\):' Makefile || die "sed failed" +} + +src_compile() { + distutils_src_compile + if use test; then + emake tests + fi +} + +src_install() { + distutils_src_install + + dodir /usr/share/ansible + insinto /usr/share/ansible + insopts -m0655 + doins library/* + + doman docs/man/man1/*.1 + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${P}/examples + fi + + newenvd "${FILESDIR}"/${PN}.env 95ansible + dodir /etc/ansible + insinto /etc/ansible + doins examples/ansible.cfg examples/hosts +} + +pkg_postinst() { + distutils_pkg_postinst + + einfo "You have to create hosts file for user:" + einfo " echo \"127.0.0.1\" > ~/ansible_hosts" + einfo "or global:" + einfo " echo \"127.0.0.1\" > /etc/ansible/hosts" + einfo "" + einfo "More info on http://ansible.github.com/gettingstarted.html" +} diff --git a/app-admin/ansible/files/ansible.env b/app-admin/ansible/files/ansible.env new file mode 100644 index 000000000000..9df5a2ab5a9a --- /dev/null +++ b/app-admin/ansible/files/ansible.env @@ -0,0 +1,2 @@ +# Use ssh transport by default. Comment it out if you want to use paramiko +ANSIBLE_TRANSPORT="ssh" diff --git a/app-admin/ansible/metadata.xml b/app-admin/ansible/metadata.xml new file mode 100644 index 000000000000..39166047c0e5 --- /dev/null +++ b/app-admin/ansible/metadata.xml @@ -0,0 +1,19 @@ + + + + + givi-zurabovich@mail.ru + Georgy Kovtunov + Maintainer. Assign bugs to him + + + pinkbyte@gentoo.org + Sergey Popov + Proxy maintainer. CC him on bugs + +Radically simple deployment, model-driven configuration management, and command execution framework. + +Use dev-python/paramiko as SSH library +Use app-admin/sudo on client nodes + + -- cgit v1.2.3-65-gdbad