Michael DeHaan
73123b69fa
Move modules into subdirectory.
10 years ago
James Cammarata
2fac1fd865
Ensure port in docker expose list is a string
...
Fixes #8731
10 years ago
Toshio Kuratomi
3f4bdce67e
My fix was wrong again. Base this try off of @mantiz's fix in #9016
10 years ago
Toshio Kuratomi
e51bcf90a0
Fix the case where a docker image is not part of a namespace.
...
Fixes #9016
10 years ago
Toshio Kuratomi
4094edf92f
Fix splitting the tag from the image name
...
Fixes #8983
10 years ago
Toshio Kuratomi
732b6f0a23
Omit tag from parsed image name
...
Fixes #8925
10 years ago
James Cammarata
fa21b336f8
Stop/remove existing docker container if the specified tag is different
...
Fixes #8278
10 years ago
Eric D. White
6f9cb7ab61
Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.
10 years ago
James Cammarata
3373e82d83
Fixing bug with image/tag pulling in docker module
...
Fixes #8670
10 years ago
James Cammarata
d6375cd3c1
Fix bad commit from #8095 and fix bad splitting on :'s in the image
...
Fixes #8095
Fixes #8658
10 years ago
James Cammarata
f729ab8e67
Make env param a dict type instead of list
...
Also modifies param type checking code to remove whitespace from
around params before splitting them into k=v pairs.
Fixes #8199
10 years ago
James Cammarata
f367adc021
Update version_added field for docker_api_version param
10 years ago
James Cammarata
30ead6a17c
Merge branch 'add-docker-api-version-parameter' of https://github.com/jmoretti/ansible into jmoretti-add-docker-api-version-parameter
10 years ago
James Cammarata
74847bfbfa
Merge branch 'devel' of https://github.com/kolloch/ansible into kolloch-devel
10 years ago
James Cammarata
aa0a904b2b
Updating version_added for docker net param and adding an example
10 years ago
James Cammarata
a9b6d5a516
Merge branch 'docker-add-net-parameter' of https://github.com/discordianfish/ansible into discordianfish-docker-add-net-parameter
10 years ago
James Cammarata
18618b47b0
Merge branch 'fixes/docker-volumes' of https://github.com/devpopol/ansible into devpopol-fixes/docker-volumes
10 years ago
Kurt Yoder
2f74c0bade
Fix Docker image name parsing
...
Fixes #8357
10 years ago
Joe Moretti
ca7498aeb7
Add optional docker_api_version parameter to Docker Module
11 years ago
Peter Kolloch
0f67a94820
Hack to fix #7738 : Allow tag in image parameter of docker module
...
It also defaults to the "latest" tag for pulling the image
instead of pulling all versions.
11 years ago
Paul Myjavec
267d107fe6
Docker links and required alias
...
If no alias is passed one will now be created for you with the same name
as the target link container, as per the documentation
11 years ago
Johannes 'fish' Ziemke
b16cad7cd9
Add networking mode parameter (net) to docker
...
Since 0.11 Docker supports different networking modes (see docker run
--net). This commit add support for that to the ansible docker module.
This depends on
2d58351164
11 years ago
Stephen Paul Suarez
834168f17b
fix spacing
11 years ago
Stephen Paul Suarez
bb0a56ad1d
fix typo
11 years ago
Stephen Paul Suarez
6b84f7093f
support rw bind mode in docker module
11 years ago
Matt Bray
901feb91fc
docker: fix targetting images by name
11 years ago
James Cammarata
8622a3f396
Merge pull request #7404 from jimi-c/issue_7363_docker_names
...
Make sure the docker data has a "Names" field before using it
11 years ago
Konstantin Shabanov
f9e6db7886
Fix env splitting in docker module
...
ENV variable value could contain '=' (for example mysql://host/db?pool=10)
11 years ago
James Cammarata
b59e4e8222
Make sure the docker data has a "Names" field before using it
...
Fixes #7363
11 years ago
Johannes 'fish' Ziemke
ac14a016c4
Fix: Remove check for Ghost state
...
This fixed the just committed change handling non existent Ghost state.
11 years ago
James Cammarata
b5ba1c4527
Merge pull request #7338 from discordianfish/remove-ghost-state
...
Remove check for Ghost state
11 years ago
Johannes 'fish' Ziemke
dccf70ec0b
Remove check for Ghost state
...
This doesn't exist anymore and causes ansible to throw a KeyError
11 years ago
James Cammarata
4e7542315c
Merge pull request #7110 from orgoj/docker-patch-version_comment
...
module docker - add docker version comment
11 years ago
James Cammarata
98d949e143
Merge pull request #7047 from joshuaconner/docker_bugfix_exclude_entrypoint_from_command_check
...
docker: exclude 'entrypoint' from comparing 'command' param with containers
11 years ago
James Cammarata
f068a4f26a
Merge pull request #6991 from joshuaconner/bugfix_dont_send_wrong_params_to_dockerclient_start
...
Docker: don't send wrong parameters to client.start()
11 years ago
Michael Heca
ae8b942e4a
module docker - add docker version comment
...
Default docker version 0.9.1 from Ubuntu 14.04 LTS don't report APIVersion.
11 years ago
CaptTofu
45d2cab30c
Small bug - 'acts' should be 'facts'
11 years ago
Joshua Conner
0ce43d6e3c
docker: exclude 'entrypoint' from comparing 'command' param with containers
...
The JSON the Docker API returns includes the container's ENTRYPOINT value (if it has one) with the 'Command' value. So instead of checking if `container['Command'] == module.params['command']`, we just check that `container['Command'].endswith(module.params['command'])` so the entrypoint won't affect a container being properly classified as matching the module params or not.
Also I refactored a super-long `if` statement into some temporary variables - I did it to help me figure out what was going wrong, and then it makes the code more readable so I kept it.
11 years ago
Joshua Conner
bac2e879b2
docker: send 1.10 params if docker-py is new enough version
11 years ago
Matt Bray
afd0e78f16
docker.client.APIError has moved to docker.errors.APIError
...
see 18d4db09ec
11 years ago
Joshua Conner
6bf75de95c
Docker: don't send wrong parameters to client.start()
...
As part of being updated for the 1.10 API, a couple of parameters were passed to the docker.client.start() command that it doesn't accept. This caused the module to error out if it tried to start any Docker containers. This removes those parameters so the module works again.
11 years ago
Matt Bray
3d20c585a6
docker: from API 1.10 dns and volumes_from should be passed to start()
11 years ago
Michael DeHaan
289b359139
Merge pull request #6486 from discordianfish/docker-module-add-running
...
Rename present to running, add new present state
11 years ago
Joshua Conner
2d9130fc23
docker: use type instead of manually casting strings to lists
11 years ago
Joshua Conner
15eaa859b0
docker bugfixes: trim whitespace around list param elements, handle list params being coerced to int or long type
11 years ago
Matt Bray
a351f40fff
docker: add tty and stdin_open options
...
Useful for development environments. Setting these options to true
allows you to `docker attach` to a docker container started with
ansible.
11 years ago
Johannes 'fish' Ziemke
459a76c0dd
Rename present to running, add new present state
...
The new present state just makes sure that a container exists, not that
it's running, although it get started one creation.
This is very useful for data volumes. This also changes the old
present, now running (default) state to only create the container if
it's not found, otherwise it just get started.
See also discussion on mailinglist:
https://groups.google.com/forum/#!topic/ansible-devel/jB84gdhPzLQ
This closes #6395
11 years ago
Joshua Conner
ad605390cd
docker: add 'version_added' to the appropriate documentation entries
11 years ago
Joshua Conner
758b9603f5
docker: update to docker-py 0.3.0, plus full port binding support, container names, links
11 years ago
Pavel Antonov
a72733ebea
Added modules description and examples
11 years ago
Pavel Antonov
ae99e8860e
Docker supports links and port binding. Added docker_image module
11 years ago
Timur Batyrshin
9ad52632c5
reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 ( #5852 )
11 years ago
Michael DeHaan
cb6f7748d5
All modules should be using /usr/bin/python in the shebang as ansible_python_interpreter processes this (see FAQ).
...
Fixing for standardization purposes.
11 years ago
Michael DeHaan
edc877d6b0
Merge pull request #5133 from joshuaconner/add_docker_max_version_to_docs
...
add supported docker version to docs
11 years ago
Joshua Conner
2c09d829cb
add supported docker version to docs
11 years ago
James Tanner
4f9aadcc07
Addresses #5023 Fix import comments
11 years ago
James Tanner
38edad70ac
Fixes #5023 Convert all modules to use new snippet import pattern
11 years ago
Michael DeHaan
08996d78d6
Add version_added to all modules missing version_added information, the docs formatter will now
...
raise errors when omitted, updated changelog with new modules.
11 years ago
Tom Berger
9344bc175d
Update cloud/docker: if the image name containes a repository, strip it.
...
When using repositories other than the main one at docker.io, the image name contains the repo name (which itself contains ":" as a separator between domain and port). We don't really care about it here, so just get rid of it before looking at the image name.
11 years ago
Cove Schneider
b69fdc270b
Fixes from docker-ansible, update license to be same as other modules
11 years ago
Cove Schneider
729297bce8
update with current fixes from docker-ansible
11 years ago
Cove Schneider
502fe3cf5f
Un-camelcase DockerContainers, rename class to DockerManager().
11 years ago
Cove Schneider
21e31722f9
remove comment about requirements
11 years ago
Cove Schneider
b4cce885e3
add requirements back
11 years ago
Cove Schneider
8f0b3cac51
clean up a few warnings
11 years ago
Cove Schneider
0fc525ff11
add python requirements to docs
11 years ago
Cove Schneider
3859da2a76
add example docs
11 years ago
Cove Schneider
ea3745d7dd
add docker module
11 years ago