summary refs log tree commit diff
path: root/pkgs/tools/admin/ansible
diff options
context:
space:
mode:
authorThilo Uttendorfer <thilo.uttendorfer@allianz.de>2018-03-30 08:08:29 +0200
committerThilo Uttendorfer <thilo.uttendorfer@allianz.de>2018-03-30 08:08:29 +0200
commitcf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e (patch)
tree29d98b764979ce7e0e86561a7af9011a8cfc4d09 /pkgs/tools/admin/ansible
parenta7af5d4f88f9e30bc9b401a84b7cb3cf036fccbb (diff)
downloadnixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar.gz
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar.bz2
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar.lz
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar.xz
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.tar.zst
nixpkgs-cf45cfc58c20faa12c0a93c9c9b5328aa4cbdf4e.zip
ansible_2_5: init at 2.5.0
Diffstat (limited to 'pkgs/tools/admin/ansible')
-rw-r--r--pkgs/tools/admin/ansible/2.5.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/admin/ansible/2.5.nix b/pkgs/tools/admin/ansible/2.5.nix
new file mode 100644
index 00000000000..9c8a143d0d9
--- /dev/null
+++ b/pkgs/tools/admin/ansible/2.5.nix
@@ -0,0 +1,40 @@
+{ stdenv
+, fetchurl
+, pythonPackages
+, windowsSupport ? false
+}:
+
+pythonPackages.buildPythonPackage rec {
+  pname = "ansible";
+  version = "2.5.0";
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "http://releases.ansible.com/ansible/${name}.tar.gz";
+    sha256 = "1p76d1pv89yhi8q05jas5gskkd1anjmqqvaks8nynmal1x5xwkki";
+  };
+
+  prePatch = ''
+    sed -i "s,/usr/,$out," lib/ansible/constants.py
+  '';
+
+  doCheck = false;
+  dontStrip = true;
+  dontPatchELF = true;
+  dontPatchShebangs = false;
+
+  propagatedBuildInputs = with pythonPackages; [
+    pycrypto paramiko jinja2 pyyaml httplib2 boto six netaddr dnspython
+  ] ++ stdenv.lib.optional windowsSupport pywinrm;
+
+  meta = with stdenv.lib; {
+    homepage = http://www.ansible.com;
+    description = "A simple automation tool";
+    license = with licenses; [ gpl3 ];
+    maintainers = with maintainers; [
+      jgeerds
+      joamaki
+    ];
+    platforms = with platforms; linux ++ darwin;
+  };
+}