Skip to content

Commit

Permalink
Merge pull request ansible#6549 from mattjbray/docker-tty-stdin_open-…
Browse files Browse the repository at this point in the history
…params

docker: add tty and stdin_open options
  • Loading branch information
mpdehaan committed Mar 19, 2014
2 parents a5bdf62 + 79b3efc commit 266123e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion library/cloud/docker
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,20 @@ options:
default: null
aliases: []
version_added: "1.5"
stdin_open:
description:
- Keep stdin open
required: false
default: false
aliases: []
version_added: "1.6"
tty:
description:
- Allocate a pseudo-tty
required: false
default: false
aliases: []
version_added: "1.6"
author: Cove Schneider, Joshua Conner, Pavel Antonov
requirements: [ "docker-py >= 0.3.0" ]
'''
Expand Down Expand Up @@ -529,6 +543,8 @@ class DockerManager:
'hostname': self.module.params.get('hostname'),
'detach': self.module.params.get('detach'),
'name': self.module.params.get('name'),
'stdin_open': self.module.params.get('stdin_open'),
'tty': self.module.params.get('tty'),
}

def do_create(count, params):
Expand Down Expand Up @@ -636,7 +652,9 @@ def main():
debug = dict(default=False, type='bool'),
privileged = dict(default=False, type='bool'),
lxc_conf = dict(default=None),
name = dict(default=None)
name = dict(default=None),
stdin_open = dict(default=False, type='bool'),
tty = dict(default=False, type='bool'),
)
)

Expand Down

0 comments on commit 266123e

Please sign in to comment.