From 940baa92a6bdee09587438a2fe1226f84ac67769 Mon Sep 17 00:00:00 2001 From: Daniel Kerwin Date: Mon, 24 Nov 2014 22:55:14 +0100 Subject: [PATCH] Add support for cpusets. Requires docker-py >= 0.6.0 --- lib/ansible/modules/cloud/docker/docker.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 8198a0db247..91b2d417474 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -285,8 +285,14 @@ options: docker-py >= 0.5.0. default: false version_added: "1.9" + cpuset: + description: + - CPUs in which to allow execution. Requires docker-py >= 0.6.0. + required: false + default: null + version_added: "1.8" -author: +author: - "Cove Schneider (@cove)" - "Joshua Conner (@joshuaconner)" - "Pavel Antonov (@softzilla)" @@ -1610,6 +1616,7 @@ def main(): pid = dict(default=None), insecure_registry = dict(default=False, type='bool'), log_driver = dict(default=None, choices=['json-file', 'none', 'syslog']), + cpuset = dict(default=None), ), required_together = ( ['tls_client_cert', 'tls_client_key'],