summaryrefslogtreecommitdiffstats
path: root/app-admin/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ansible')
-rw-r--r--app-admin/ansible/Manifest12
-rw-r--r--app-admin/ansible/ansible-2.2.0.0-r1.ebuild62
-rw-r--r--app-admin/ansible/ansible-2.3.3.0.ebuild56
-rw-r--r--app-admin/ansible/ansible-2.4.3.0-r1.ebuild63
-rw-r--r--app-admin/ansible/ansible-2.4.3.0-r2.ebuild64
-rw-r--r--app-admin/ansible/files/README.gentoo8
-rw-r--r--app-admin/ansible/files/ansible-ds-dns4.patch12
-rw-r--r--app-admin/ansible/files/ansible-ds-gi.patch14
-rw-r--r--app-admin/ansible/files/ansible-include-role.patch34
-rw-r--r--app-admin/ansible/files/ansible.env2
10 files changed, 327 insertions, 0 deletions
diff --git a/app-admin/ansible/Manifest b/app-admin/ansible/Manifest
new file mode 100644
index 0000000..ced8d29
--- /dev/null
+++ b/app-admin/ansible/Manifest
@@ -0,0 +1,12 @@
+AUX README.gentoo 398 SHA256 d988c57c417023c225deebf7fde59222f3ff214b1f750320e8318349455e78db SHA512 7504d7c2e8731bfaf97e045dc75fc29c50fd8602377391f598b897d93c96913a252d436d0373518da50f4e98c370b59d172b98d3db6e32d18e0097cf5e4f3333 WHIRLPOOL 7fe8e0bb6ed46bd5ccae52c609af528de9546fbb8c69139e73b7f029b36380e11baf4988e212aedea7df9652b2154b8c9ba030a4b7ea461637eb826fce784dfe
+AUX ansible-ds-dns4.patch 719 SHA256 66f4b665759d644a25a3959cc7d3b0c9dd46710df97c53b297e0edb131124932 SHA512 62c87ad8515b851cd1a73bb03c722b00834ac48893c560e39f9d42beac88928fa58d5eaf1d756db0922d8e4cccc0a06721fc0b1ca87a652ece037e9491c27de3 WHIRLPOOL 261f40f0d5c96049136f80f6a7dab5aea7945c3ea8ee118213360380e2f7ecf25d68fb54c0d37a38178f1fca95e3ee21edefb5e73466d5b69a7f0998ac8fc103
+AUX ansible-ds-gi.patch 583 SHA256 28d81a638c82bcc1fde1f69817a08cbd670a429810b50828591d9ce601100f59 SHA512 0b795d0ae90c3e13ebcbec20dafa528b8aa0221259b156af5ec9cd6b78354e63fa4e2c37fda7f88bbfe17e3aed1fac2424e5f3b2db49ec6eba4eae9c45e24741 WHIRLPOOL 95dc847999f6f8cd2a6491df5f85be91d9e94f6f0916c01d75f09a19d2d8730b1d9a9db53c61dcd8981b4a035415df5e2f826de77f70e2a040a0ba57543abc59
+AUX ansible-include-role.patch 2303 SHA256 78f33d6fd78799ec72285af89199c79b86f4fb7d867f00543887db5951d28c84 SHA512 be1408cab289bca43aba19474d90c16ca1b00f9f834568a6791ddeaaad3866e896193d99e8c3046c132a031e684d5d16baaea395455372f97a366e54e1c43561 WHIRLPOOL 1f1a23d3b5b13ce98c648f0c402c5dac561638d3253e04da608b63d8d415d4b4c13403f33b3263874c9b015700246e443ade25c30ce9e6387e7badc4c57df703
+AUX ansible.env 99 SHA256 04a806ca12249b1b1387e17cabd85c8b09bac64914650d7a776576153e32591f SHA512 79d0d6581116ede67d6b184d1a16c2ba6586d4ca8cd71047bc5a81a82696b0e1a124f22248877aefc0a810f0ae3bd2724dadaf71dd5078bbe0910a9e8c3ab111 WHIRLPOOL f347143d490cf1dd6784059022fb7c6c85eaa5e957b6b5eb85f6b1b8a98d1b90c26aa0602fe2cd6679c4709fb9dad2fa67bc53326bfca80205cb7b7ded757c90
+DIST ansible-2.2.0.0.tar.gz 2441851 SHA256 d9f198d293394ce0f8ba802561b21368888e3301036a706b5584641b49408586 SHA512 8bb8360f41e920c46552ead826a342311d0acffa264334c8c8ae868f8bf45caad4ff2b9c9c0ec4e551653edaf80eb49d8dece5c2ba7e1088c2ce74d3ff0e3130 WHIRLPOOL 911ba4959fbca8527e9cf4b46c86cefc415433cab21486ff47302d02e60c4c2da1abc91c7ab564642a518acd5a5c1cbc8b3930ef7f596518c5aa358f001f4064
+DIST ansible-2.3.3.0.tar.gz 4190380 SHA256 da2a715f6ca14a76001cc0f4bd1e44024328b3c2dad2c946dc9c7ed2d7c30afa SHA512 9f06719ea08648edacfc0f38aef4d57672d49d71f7985e0dcd70f201e9141c4cc456903fdc8f6803c6d9e184b2af631c20783f9486ba1f9789e05679a00a5e76 WHIRLPOOL 46483a7eeac6b817b7026b2638f69e234cf1de4addd49df26ef0a8b2bea422e681dd80d96b00b1007cdef34acbad4d64e8f2f21ec45f4dbb2afdec0a5139a43b
+DIST ansible-2.4.3.0.tar.gz 6511115 SHA256 0e98b3a56928d03979d5f8e7ae5d8e326939111b298729b03f00b3ad8f998a3d SHA512 a7cda358c67c519c7e5ba248bf47070f21a27203fb29d70d9d75ecf027ba1275d71c0f96493e047281211d172a3be8273d7e08144446284695fb0bc8b94daa82 WHIRLPOOL ed35833744b0b1c03700fc0e56609aef0d70115b0016b91629bff3852220838b5034c8dff5f43c776f3be396cb2ccdc88b62fb79311690563a0bbb179d575080
+EBUILD ansible-2.2.0.0-r1.ebuild 1495 SHA256 e248f0151cbbb5c9c6714759d12d2a180960f5d0ba9783577fc694ca80117140 SHA512 43cabf88357b7567d76c094dd80e3a59d245cfd040f1486f96f24139887eda30e92211cec2d7f07d9341f7c2195f26a5fb22e6e7a08d5b4e1bfbef5739e682dd WHIRLPOOL a0b9fb3ae558cd02aa9156235af96a14fc6881e2eb00f93cc91ea3d5d970de17547c910fbb6acae5bb73de46cae05e54dd5589d5cf46357b8d4634e989571d71
+EBUILD ansible-2.3.3.0.ebuild 1403 SHA256 6b3701ef12c278b3113498c8e202bb67756ac7f28c620d157be9c4d51dc2ed97 SHA512 c7b70a521aa9127044d00741889aca9c2264606eacc76809c79c4eb529276ab382c3716122b5f8e13f543a086710f6a4747a9aa5cc29f3f4b93c815d6db981e4 WHIRLPOOL 69e823b48fcc43a1b7b6d60d8802814118a339d835154aa4195044527b2cb56078254d97c6679f90af6f548e61b83346df8c446555098099bdfe14453c9880a4
+EBUILD ansible-2.4.3.0-r1.ebuild 1494 SHA256 b6f4f9e599e8e1a99483ea75e2eaf20d43a4fc278b518759b268f1af73a0cfe0 SHA512 0a37c0ee7b66e8424e49de5a08f04879e7c4ebd06f3718d8b7c1fcc3133414d6c9387903764b999e6389cfca88aea9b956f85d52ba31ab2f21867cbd61bf02e0 WHIRLPOOL c75045196dbb27050fd7da7b057caf223770540ce47b263f8596270c74fc6783802863c6ea0712fc004193de054849ac05ee5ccef94ccc9a3e8b5f696c1f2c37
+EBUILD ansible-2.4.3.0-r2.ebuild 1535 SHA256 0bd59cb12ceb5966d94b6d932d5c9478caa30791e7af7df5c80f7156613bd35c SHA512 bfb3efa1e171a970099ba0cd7995aad443d686d83764912e1812353e427b4eff29b42dcc52ebaed5934bc19753e07fd27a7f21ee4e36e9fc6035d8b6b914509d WHIRLPOOL 7e749f9483fb59d2b2214fc956a809af333e2e482072d5967799c64bd50e00bcc919ab3c623d896d781ab3115504e6cff816c7be6a838b5a804f2d9325a9683c
diff --git a/app-admin/ansible/ansible-2.2.0.0-r1.ebuild b/app-admin/ansible/ansible-2.2.0.0-r1.ebuild
new file mode 100644
index 0000000..2443430
--- /dev/null
+++ b/app-admin/ansible/ansible-2.2.0.0-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils versionator
+
+DESCRIPTION="Model-driven deployment, config management, and command execution framework"
+HOMEPAGE="http://ansible.com/"
+SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x64-macos"
+IUSE="keyczar test"
+
+RDEPEND="
+ keyczar? ( dev-python/keyczar[${PYTHON_USEDEP}] )
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ <dev-python/jinja-2.9[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ net-misc/sshpass
+ virtual/ssh
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ <dev-python/mock-1.1[${PYTHON_USEDEP}]
+ dev-python/passlib[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )"
+
+# not included in release tarball
+RESTRICT="test"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+python_test() {
+ nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/man/man1/*.1
+}
diff --git a/app-admin/ansible/ansible-2.3.3.0.ebuild b/app-admin/ansible/ansible-2.3.3.0.ebuild
new file mode 100644
index 0000000..0d10b0b
--- /dev/null
+++ b/app-admin/ansible/ansible-2.3.3.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6} )
+
+inherit distutils-r1 eutils versionator
+
+DESCRIPTION="Model-driven deployment, config management, and command execution framework"
+HOMEPAGE="http://ansible.com/"
+SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 x64-macos"
+IUSE="test"
+
+RDEPEND="
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/netaddr[${PYTHON_USEDEP}]
+ net-misc/sshpass
+ virtual/ssh
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ dev-python/passlib[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )"
+
+# not included in release tarball
+RESTRICT="test"
+
+python_test() {
+ nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/man/man1/*.1
+ dodoc -r examples
+}
diff --git a/app-admin/ansible/ansible-2.4.3.0-r1.ebuild b/app-admin/ansible/ansible-2.4.3.0-r1.ebuild
new file mode 100644
index 0000000..7861a53
--- /dev/null
+++ b/app-admin/ansible/ansible-2.4.3.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6} )
+
+inherit distutils-r1 eutils versionator
+
+DESCRIPTION="Model-driven deployment, config management, and command execution framework"
+HOMEPAGE="http://ansible.com/"
+SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 x64-macos"
+IUSE="test"
+
+RDEPEND="
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/netaddr[${PYTHON_USEDEP}]
+ net-misc/sshpass
+ virtual/ssh
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ dev-python/passlib[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )"
+
+#SDS
+PATCHES=(
+ "${FILESDIR}"/${PN}-ds-gi.patch
+ "${FILESDIR}"/${PN}-ds-dns4.patch
+)
+#EDS
+
+# not included in release tarball
+RESTRICT="test"
+
+python_test() {
+ nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/man/man1/*.1
+ dodoc -r examples
+}
diff --git a/app-admin/ansible/ansible-2.4.3.0-r2.ebuild b/app-admin/ansible/ansible-2.4.3.0-r2.ebuild
new file mode 100644
index 0000000..646415a
--- /dev/null
+++ b/app-admin/ansible/ansible-2.4.3.0-r2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{5,6} )
+
+inherit distutils-r1 eutils versionator
+
+DESCRIPTION="Model-driven deployment, config management, and command execution framework"
+HOMEPAGE="http://ansible.com/"
+SRC_URI="http://releases.ansible.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 x64-macos"
+IUSE="test"
+
+RDEPEND="
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/netaddr[${PYTHON_USEDEP}]
+ net-misc/sshpass
+ virtual/ssh
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+ dev-python/passlib[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-vcs/git
+ )"
+
+#SDS
+PATCHES=(
+ "${FILESDIR}"/${PN}-ds-gi.patch
+ "${FILESDIR}"/${PN}-ds-dns4.patch
+ "${FILESDIR}"/${PN}-include-role.patch
+)
+#EDS
+
+# not included in release tarball
+RESTRICT="test"
+
+python_test() {
+ nosetests -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/man/man1/*.1
+ dodoc -r examples
+}
diff --git a/app-admin/ansible/files/README.gentoo b/app-admin/ansible/files/README.gentoo
new file mode 100644
index 0000000..828e13c
--- /dev/null
+++ b/app-admin/ansible/files/README.gentoo
@@ -0,0 +1,8 @@
+You can define parameters through shell variables OR use config files
+Examples of config files installed in /usr/share/ansible/examples
+You have to create ansible hosts file!
+More info on http://docs.ansible.com/intro_getting_started.html
+
+Some optional dependencies, you might want to install:
+dev-python/keyczar - needed to support accelerated mode
+dev-python/paramiko - alternative SSH backend"
diff --git a/app-admin/ansible/files/ansible-ds-dns4.patch b/app-admin/ansible/files/ansible-ds-dns4.patch
new file mode 100644
index 0000000..f18e7d8
--- /dev/null
+++ b/app-admin/ansible/files/ansible-ds-dns4.patch
@@ -0,0 +1,12 @@
+diff -dPNur ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py
+--- ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py 2018-02-01 00:09:48.000000000 +0100
++++ ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py 2018-03-12 16:54:08.121892385 +0100
+@@ -556,7 +560,7 @@
+ self.type=module.params['type']
+ self.ip4=module.params['ip4']
+ self.gw4=module.params['gw4']
+- self.dns4=' '.join(module.params['dns4'])
++ self.dns4=' '.join(module.params['dns4']) if module.params.get('dns4') else None
+ self.ip6=module.params['ip6']
+ self.gw6=module.params['gw6']
+ self.dns6=module.params['dns6']
diff --git a/app-admin/ansible/files/ansible-ds-gi.patch b/app-admin/ansible/files/ansible-ds-gi.patch
new file mode 100644
index 0000000..2004e1a
--- /dev/null
+++ b/app-admin/ansible/files/ansible-ds-gi.patch
@@ -0,0 +1,14 @@
+diff -dPNur ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py
+--- ansible-2.4.3.0/lib/ansible/modules/net_tools/nmcli.py 2018-02-01 00:09:48.000000000 +0100
++++ ansible-2.4.3.0-new/lib/ansible/modules/net_tools/nmcli.py 2018-03-12 16:41:51.287447030 +0100
+@@ -490,6 +490,10 @@
+
+ HAVE_NM_CLIENT=False
+ try:
++ import gi
++ gi.require_version('NMClient', '1.0')
++ gi.require_version('NetworkManager', '1.0')
++
+ from gi.repository import NetworkManager, NMClient
+ HAVE_NM_CLIENT=True
+ except ImportError:
diff --git a/app-admin/ansible/files/ansible-include-role.patch b/app-admin/ansible/files/ansible-include-role.patch
new file mode 100644
index 0000000..5ef7967
--- /dev/null
+++ b/app-admin/ansible/files/ansible-include-role.patch
@@ -0,0 +1,34 @@
+diff -dPNur ansible-2.4.3.0/lib/ansible/playbook/included_file.py ansible-2.4.3.0-new2/lib/ansible/playbook/included_file.py
+--- ansible-2.4.3.0/lib/ansible/playbook/included_file.py 2018-02-01 00:09:48.000000000 +0100
++++ ansible-2.4.3.0-new2/lib/ansible/playbook/included_file.py 2018-03-21 13:39:25.259172590 +0100
+@@ -134,6 +134,17 @@
+ include_file = templar.template(include_file)
+ inc_file = IncludedFile(include_file, include_variables, original_task)
+ else:
++ # template the included role's name here
++ role_name = include_variables.get('name', include_variables.get('role', None))
++ if role_name is not None:
++ role_name = templar.template(role_name)
++
++ original_task._role_name = role_name
++ for from_arg in original_task.FROM_ARGS:
++ if from_arg in include_variables:
++ from_key = from_arg.replace('_from', '')
++ original_task._from_files[from_key] = templar.template(include_variables[from_arg])
++
+ inc_file = IncludedFile("role", include_variables, original_task, is_role=True)
+
+ try:
+diff -dPNur ansible-2.4.3.0/lib/ansible/plugins/strategy/free.py ansible-2.4.3.0-new2/lib/ansible/plugins/strategy/free.py
+--- ansible-2.4.3.0/lib/ansible/plugins/strategy/free.py 2018-02-01 00:09:48.000000000 +0100
++++ ansible-2.4.3.0-new2/lib/ansible/plugins/strategy/free.py 2018-03-21 13:39:25.259172590 +0100
+@@ -197,7 +197,7 @@
+ new_ir = included_file._task.copy()
+ new_ir.vars.update(included_file._args)
+
+- new_blocks, handler_blocks = new_ir.get_block_list(
++ new_blocks, handler_blocks = included_file._task.get_block_list(
+ play=iterator._play,
+ variable_manager=self._variable_manager,
+ loader=self._loader,
+diff -dPNur ansible-2.4.3.0/lib/ansible/plugins/strategy/free.py.orig ansible-2.4.3.0-new2/lib/ansible/plugins/strategy/free.py.orig
diff --git a/app-admin/ansible/files/ansible.env b/app-admin/ansible/files/ansible.env
new file mode 100644
index 0000000..9df5a2a
--- /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"