summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2012-09-09 08:59:42 +0000
committerSergey Popov <pinkbyte@gentoo.org>2012-09-09 08:59:42 +0000
commitba3989d60a7fa4c7406070d3974cf39288585b76 (patch)
treee69d6da7b5c6074158e14d59d72e91b08a2b75ca /app-admin/ansible
parentUse slot dependencies from now on. (diff)
downloadgentoo-2-ba3989d60a7fa4c7406070d3974cf39288585b76.tar.gz
gentoo-2-ba3989d60a7fa4c7406070d3974cf39288585b76.tar.bz2
gentoo-2-ba3989d60a7fa4c7406070d3974cf39288585b76.zip
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)
Diffstat (limited to 'app-admin/ansible')
-rw-r--r--app-admin/ansible/ChangeLog12
-rw-r--r--app-admin/ansible/ansible-0.7.ebuild60
-rw-r--r--app-admin/ansible/ansible-9999.ebuild77
-rw-r--r--app-admin/ansible/files/ansible.env2
-rw-r--r--app-admin/ansible/metadata.xml19
5 files changed, 170 insertions, 0 deletions
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 <pinkbyte@gentoo.org> +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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>givi-zurabovich@mail.ru</email>
+ <name>Georgy Kovtunov</name>
+ <description>Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+<longdescription lang="en">Radically simple deployment, model-driven configuration management, and command execution framework.</longdescription>
+<use>
+<flag name="paramiko">Use <pkg>dev-python/paramiko</pkg> as SSH library</flag>
+<flag name="sudo">Use <pkg>app-admin/sudo</pkg> on client nodes</flag>
+</use>
+</pkgmetadata>