summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-05-16 19:38:34 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-05-16 19:38:34 +0200
commitbf072688b43b130a34d990e3efe7760a5595d5a9 (patch)
treebcbf9a7e52dfb37bbac097f2fbde41f9840c3733
parentkubernetes: set cgroup driver to systemd, enable metrics-server and node-loca... (diff)
enable mitogen
-rw-r--r--ansible.cfg4
-rw-r--r--contrib/.gitignore1
-rw-r--r--contrib/Makefile12
3 files changed, 17 insertions, 0 deletions
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