Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible: Fix connection plugins and add support for NETCONF #72370

Merged
merged 3 commits into from Nov 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions pkgs/development/python-modules/ansible/default.nix
Expand Up @@ -6,12 +6,12 @@
, jinja2
, pyyaml
, httplib2
, boto
, six
, netaddr
, dnspython
, jmespath
, dopy
, ncclient
, windowsSupport ? false
, pywinrm
}:
Expand All @@ -28,7 +28,9 @@ buildPythonPackage rec {
};

prePatch = ''
sed -i "s,/usr/,$out," lib/ansible/constants.py
# ansible-connection is wrapped, so make sure it's not passed
# through the python interpreter.
sed -i "s/\[python, /[/" lib/ansible/executor/task_executor.py
'';

postInstall = ''
Expand All @@ -39,7 +41,7 @@ buildPythonPackage rec {

propagatedBuildInputs = [
pycrypto paramiko jinja2 pyyaml httplib2
six netaddr dnspython jmespath dopy
six netaddr dnspython jmespath dopy ncclient
] ++ lib.optional windowsSupport pywinrm;

# dificult to test
Expand Down