Commit graph

15 commits

Author SHA1 Message Date
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