From bf072688b43b130a34d990e3efe7760a5595d5a9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 16 May 2020 19:38:34 +0200 Subject: enable mitogen --- ansible.cfg | 4 ++++ contrib/.gitignore | 1 + contrib/Makefile | 12 ++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 contrib/.gitignore create mode 100644 contrib/Makefile diff --git a/ansible.cfg b/ansible.cfg index 40aec251..ca12c8fc 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -27,6 +27,10 @@ interpreter_python = auto_legacy_silent ## https://github.com/ansible/ansible/issues/56930 force_valid_group_names = ignore +## you need run `make -C contrib` first +strategy_plugins = ./contrib/mitogen/ansible_mitogen/plugins/strategy +strategy = mitogen_linear + [ssh_connection] pipelining = True ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s diff --git a/contrib/.gitignore b/contrib/.gitignore new file mode 100644 index 00000000..94d7a78a --- /dev/null +++ b/contrib/.gitignore @@ -0,0 +1 @@ +/mitogen* diff --git a/contrib/Makefile b/contrib/Makefile new file mode 100644 index 00000000..7c6a2058 --- /dev/null +++ b/contrib/Makefile @@ -0,0 +1,12 @@ +MITOGEN_VERSION := 0.2.9 +MITOGEN_SHA256SUM := 76cb9afef92596818a4639afb2a0bb0384ce7b6699b353af55662057b08b1e57 + +all: download-mitogen + +download-mitogen: mitogen-${MITOGEN_VERSION}.tar.gz + +mitogen-${MITOGEN_VERSION}.tar.gz: + wget "https://networkgenomics.com/try/$@" -O "$@" + echo "${MITOGEN_SHA256SUM} $@" | sha256sum -c + tar -xzf $@ + ln -sf "mitogen-${MITOGEN_VERSION}" mitogen -- cgit v1.2.3