Toshio Kuratomi
b87e3ce362
Quote strings that make the module docs fail to build
2015-11-20 13:57:58 -08:00
Toshio Kuratomi
19374903ac
Switch StrictVersion for LooseVersion since some distros ship
...
beta versions and StrictVersion would fail on that.
Also clean up some minor style things
2015-11-20 12:36:36 -08:00
Olaf Kilian
c629d5b013
Add requirement and check for compatible version of docker-py
2015-11-20 21:05:19 +01:00
Olaf Kilian
66964f660a
Set no_log for password argument
2015-11-20 20:25:50 +01:00
Olaf Kilian
98b21ee7f3
Improve registry key parity between clients
...
* Don't extract hostname part from docker_url since this leads to
docker CLI client not recognizing Docker Hub credentials set by
docker_login module anymore (looks for the full URL as a key).
2015-10-28 10:14:54 +01:00
Olaf Kilian
988be3458d
Rework change detection
2015-10-28 10:13:35 +01:00
Olaf Kilian
9d39885d18
Adapt to new dockercfg file location and structure
2015-10-28 10:04:55 +01:00
Olaf Kilian
ef64423683
Make module importable for unit tests
2015-10-23 06:34:22 +02:00
Olaf Kilian
c3d15a56cf
Set default for email parameter to None
2015-10-23 06:33:10 +02:00
Olaf Kilian
e86131c62f
Add requirement for python >= 2.6
2015-10-23 06:29:39 +02:00
Olaf Kilian
85cc47c9e1
Default registry to docker hub
2015-10-23 06:28:28 +02:00
Olaf Kilian
3bcb24e656
Added more meaningful fail messages on Docker API
2015-05-07 09:36:32 +02:00
Olaf Kilian
30fa6e3ea4
Added default email address
2015-05-07 09:35:40 +02:00
Olaf Kilian
3d3efa3614
Removed unused import of sys module
2015-05-07 09:15:04 +02:00
Olaf Kilian
f5e7ce00e7
Extract only the hostname part from self.registry
...
This is needed for update_dockercfg() to register only the host part
of a specified registry URL in the .dockercfg.
2015-05-06 22:43:28 +02:00
Olaf Kilian
7a2a75f6c0
Remove registry from exit_json because misleading
...
docker-py is not returning the name of the registry
if already logged in. It can differ from the registry
specified by the user, which was return as registry.
2015-05-06 22:33:31 +02:00
Olaf Kilian
feb20eeadd
Update PR based on review from @resmo
2015-05-06 22:28:36 +02:00
Olaf Kilian
772e92eca9
Add docker_login module
...
- Ansible version of "docker login" CLI command
- Persists Docker registry authentification in .dockercfg (only login once - no need to specify credentials over and over again anymore)
- Works for all other docker-py based modules (docker, docker_images) as well as the Docker CLI client
2015-05-03 17:13:34 +02:00
Michael DeHaan
73123b69fa
Move modules into subdirectory.
2014-09-26 09:23:50 -04:00
James Cammarata
2fac1fd865
Ensure port in docker expose list is a string
...
Fixes #8731
2014-09-16 21:38:49 -05:00
Toshio Kuratomi
3f4bdce67e
My fix was wrong again. Base this try off of @mantiz's fix in #9016
2014-09-16 11:46:09 -07:00
Toshio Kuratomi
e51bcf90a0
Fix the case where a docker image is not part of a namespace.
...
Fixes #9016
2014-09-16 11:39:15 -07:00
Toshio Kuratomi
4094edf92f
Fix splitting the tag from the image name
...
Fixes #8983
2014-09-15 09:01:07 -07:00
Toshio Kuratomi
732b6f0a23
Omit tag from parsed image name
...
Fixes #8925
2014-09-11 11:27:00 -07:00
James Cammarata
fa21b336f8
Stop/remove existing docker container if the specified tag is different
...
Fixes #8278
2014-08-26 13:36:42 -05:00
Eric D. White
6f9cb7ab61
Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.
2014-08-24 21:07:26 +01:00
James Cammarata
3373e82d83
Fixing bug with image/tag pulling in docker module
...
Fixes #8670
2014-08-22 14:08:40 -05:00
James Cammarata
d6375cd3c1
Fix bad commit from #8095 and fix bad splitting on :'s in the image
...
Fixes #8095
Fixes #8658
2014-08-18 10:37:07 -05:00
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
2014-08-15 11:04:27 -05:00
James Cammarata
f367adc021
Update version_added field for docker_api_version param
2014-08-08 15:03:34 -05:00
James Cammarata
30ead6a17c
Merge branch 'add-docker-api-version-parameter' of https://github.com/jmoretti/ansible into jmoretti-add-docker-api-version-parameter
2014-08-08 14:52:25 -05:00
James Cammarata
74847bfbfa
Merge branch 'devel' of https://github.com/kolloch/ansible into kolloch-devel
2014-08-08 13:44:48 -05:00
James Cammarata
aa0a904b2b
Updating version_added for docker net param and adding an example
2014-08-08 13:16:08 -05:00
James Cammarata
a9b6d5a516
Merge branch 'docker-add-net-parameter' of https://github.com/discordianfish/ansible into discordianfish-docker-add-net-parameter
2014-08-08 13:09:19 -05:00
James Cammarata
18618b47b0
Merge branch 'fixes/docker-volumes' of https://github.com/devpopol/ansible into devpopol-fixes/docker-volumes
2014-08-08 12:24:21 -05:00
Kurt Yoder
2f74c0bade
Fix Docker image name parsing
...
Fixes #8357
2014-07-30 14:33:01 -04:00
Joe Moretti
ca7498aeb7
Add optional docker_api_version parameter to Docker Module
2014-07-08 10:06:31 -05:00
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.
2014-06-12 11:48:57 +02:00
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
2014-06-10 22:53:55 +10:00
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
2014-05-29 18:59:03 +02:00
Stephen Paul Suarez
834168f17b
fix spacing
2014-05-28 06:14:54 +08:00
Stephen Paul Suarez
bb0a56ad1d
fix typo
2014-05-27 19:19:49 +08:00
Stephen Paul Suarez
6b84f7093f
support rw bind mode in docker module
2014-05-27 16:18:23 +08:00
Matt Bray
901feb91fc
docker: fix targetting images by name
2014-05-15 15:04:30 +01:00
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
2014-05-14 14:44:16 -05:00
Konstantin Shabanov
f9e6db7886
Fix env splitting in docker module
...
ENV variable value could contain '=' (for example mysql://host/db?pool=10)
2014-05-14 18:11:43 +04:00
James Cammarata
b59e4e8222
Make sure the docker data has a "Names" field before using it
...
Fixes #7363
2014-05-12 12:27:07 -05:00
Johannes 'fish' Ziemke
ac14a016c4
Fix: Remove check for Ghost state
...
This fixed the just committed change handling non existent Ghost state.
2014-05-09 20:13:25 +02:00
James Cammarata
b5ba1c4527
Merge pull request #7338 from discordianfish/remove-ghost-state
...
Remove check for Ghost state
2014-05-09 13:06:16 -05:00
Johannes 'fish' Ziemke
dccf70ec0b
Remove check for Ghost state
...
This doesn't exist anymore and causes ansible to throw a KeyError
2014-05-09 18:07:02 +02:00