Commit Graph

331 Commits

Author SHA1 Message Date
Felix Fontein d0d5bdb905 docker_container: improve documentation for env w.r.t. automatic type conversions (#158)
* Improve documentation for docker_container's env w.r.t. automatic type conversions.

* Update plugins/modules/docker_container.py

Co-authored-by: Amin Vakil <info@aminvakil.com>

Co-authored-by: Amin Vakil <info@aminvakil.com>
2021-06-21 12:40:53 +02:00
Felix Fontein 22bc8da783 Make extra sanity test runner produce ansibullbot and JUnit output. (#154) 2021-06-14 07:24:01 +02:00
Felix Fontein fc241019b5 CI: Remove scripts that are no longer needed (#153)
* Remove scripts that are no longer needed.

ci_complete

* Remove sanity ignores.
2021-06-13 22:11:57 +02:00
Felix Fontein 93ac705013 Next expected release is 1.8.0. 2021-06-08 14:36:49 +02:00
Felix Fontein 5fa0aa073c Release 1.7.0. 1.7.0 2021-06-08 14:05:55 +02:00
Felix Fontein eba726b42e Add more docker_compose tests (#151)
* Add basic changed test.

* Add start/stop tests.
2021-06-07 07:24:41 +02:00
Felix Fontein 0d3d5fd6cb Prepare 1.7.0 release. 2021-06-07 07:02:29 +02:00
Felix Fontein b775bac593 docker_image: allow to tag images by name, improve docs (#149)
* Add test to tag image with ID.

* Document that source=local also works with image IDs.

* Improve 'repository' documentation.

* Fix typo.

* Looks like a fix is needed to make this work.

* ...

* Avoid unnecessary re.search() calls.

* Add changelog fragment.

* Improve main description.

* Remove import.
2021-06-07 07:01:10 +02:00
Felix Fontein 4d0637e178 Add basic docker_compose tests (#150)
* Add basic docker_compose tests.

* Add more constraints for Py 2.

* Try to install docker-compose from system packages.

* Another try.

* Some more tries.

* One more.

* Move task into block.

* Clean up constraints file.

* More adjustments.

* TEMP: add debug output
2021-06-07 06:42:31 +02:00
Felix Fontein 2bf67b5a2a Fix URL to docker inventory script. (#148) 2021-06-03 21:37:59 +02:00
Felix Fontein 9b73be4f30 Add extra docs tests (#146)
* Add extra docs tests.

* Linting.

* Fix copy'n'paste error.
2021-05-27 22:58:52 +02:00
Felix Fontein b3284ce382 Restrict websocket-client to < 1.0.0 for Python 2. (#144) 2021-05-19 12:09:24 +02:00
Felix Fontein 8f7a08583d Next planned release is 1.7.0. 2021-05-17 15:26:19 +02:00
Felix Fontein edd14808ee Release 1.6.1. 1.6.1 2021-05-17 13:58:16 +02:00
Felix Fontein 355b29e7d3 Prepare 1.6.1. 2021-05-17 13:55:25 +02:00
Felix Fontein a0a7f8fdc1 Add scenario guide (#140)
* Add scenario guide.

* Add extra docsite files.

* Fix prefix.

* Adjust name of docsite index.

* Update with changes from ansible/ansible.
2021-05-17 13:48:29 +02:00
Felix Fontein c20186901b Only emit tls_hostname deprecation warning if TLS is actually used (#143)
* Only emit tls_hostname deprecation warning if TLS is actually used.

* Linting.
2021-05-17 13:24:50 +02:00
Felix Fontein 3e6017bfb3 Next expected release is 1.7.0. 2021-05-11 11:38:02 +02:00
Felix Fontein 36c1b4d818 Relesae 1.6.0. 1.6.0 2021-05-11 07:33:38 +02:00
Shane St Savage a512e7fb9e feat: allow unlimited memory_swap in docker_container (#138)
* feat: allow unlimited memory_swap in docker_container

summary: in docker_container, allow `memory_swap: values
`unlimited` and `-1` for unlimited container swap usage.

`--memory-swap=-1` is a valid docker run value allowing
unlimited swap usage. `docker_container` should allow
setting this value via `memory_swap` values `unlimited`
and `-1` as it sometimes must explicitly be set to prevent
docker from attempting to limit swap usage to double the
`--memory` value by default. In rootless docker environments,
attempting to set `memory-swap` usage limits will result in an error
if the user doesn't have the ability to do so. Allowing explicit
unlimited swap usage via docker_container will prevent these errors.

https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details

* Update tests/integration/targets/docker_container/tasks/tests/options.yml

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-05-10 20:24:04 +02:00
Felix Fontein 9ad7d3490a Prepare 1.6.0 release. 2021-05-10 17:57:22 +02:00
Felix Fontein 316b5fa8e2 Clarify Windows (non-)support. (#137) 2021-05-10 17:14:46 +02:00
Felix Fontein 3a0d3e15fb Configure plugin after installing it. (#135) 2021-05-07 07:14:28 +02:00
Felix Fontein 74475d1d9b docker_swarm_service: fix crash during idempotence check if published_port is not specified (#136)
* Avoid crash during idempotence check if published_port is not specified.

* Add tests.

* Convert lambda to function.
2021-05-05 08:00:22 +02:00
Alexandr N. Zamaraev 859bc29f9e docker_compose: fix #12 (#119)
* fix #12

* Create 12-correct_pull_wo_starting.yaml

* Update changelogs/fragments/12-correct_pull_wo_starting.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/12-correct_pull_wo_starting.yaml

Co-authored-by: Amin Vakil <info@aminvakil.com>

* Update docker_compose.py

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Amin Vakil <info@aminvakil.com>
2021-05-04 07:53:38 +02:00
Felix Fontein cffba7b15d Deprecate default for tls_hostname (#134)
* Start removing default.

* Add deprecate() function to AnsibleDockerClientBase.

* Deprecate default value for tls_hostname.

* Add changelog.

* Mention deprecation in documentation.
2021-05-04 07:50:33 +02:00
Felix Fontein 887472e60d Replace busybox image with another one to hopefully avoid removal problems. (#133) 2021-05-02 15:38:22 +02:00
Felix Fontein 799dcb9fd6 Add ansible-test config file. (#132) 2021-05-01 22:37:18 +02:00
Felix Fontein cc91e77280 Add Fedora 34 and remove Fedora 32 from devel tests. (#131) 2021-04-30 20:07:44 +00:00
Felix Fontein d63566dbd1 Use Ansible's codecov uploader. (#130) 2021-04-30 04:28:28 +02:00
daeseokyoun 3f8946a369 adds missing changelog fragment file (#126)
* adds missing changelog fragment file

changelog fragment file for #125

* Update changelogs/fragments/125-correct-error-message-for-docker-sdk-version.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-04-17 13:26:15 +02:00
John R Barker ec94bd0172 Link to docs (#124)
* Link to docs

* Update README.md

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-04-17 09:51:44 +02:00
daeseokyoun 18ccec6b10 common: correct error message for docker sdk version (#125)
Annouced that 5.0.0 in Docker SDK for Python do not support Python 2.7 anymore.
When the system use Python 2.7, and run "pip install docker" command to
install Docker SDK for Python module. Then the 5.0.0 will be installed.

When occurred the error for mismatching version for Python 2.7, the user
could not feature it out why it failed.

Co-authored-by: Daeseok Youn <daeseok.youn@navercorp.com>
2021-04-16 23:53:20 +02:00
Felix Fontein 90dbdbc47b Next expected release is 1.6.0. 2021-04-11 16:45:34 +02:00
Felix Fontein dd03fdbc6a Release 1.5.0. 1.5.0 2021-04-11 16:06:02 +02:00
Felix Fontein 5d7f970bc5 Prepare 1.5.0. 2021-04-11 15:52:19 +02:00
Felix Fontein a3b9648233 Improve exception handling. (#121) 2021-04-08 08:00:01 +02:00
Felix Fontein ff503d9bd7 Add docker_container_exec module (#105)
* Move some code from plugin_utils to module_utils.

* First version of docker_container_exec module.

* Linting.

* Avoid using display.

* Move common socket_handler code to module_utils.

* Add module support, use it in docker_container_exec.

* Add tests.

* Fix copyright lines.

* Add this and other 'new' modules to README.

* Apply suggestions from code review

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* Update plugins/modules/docker_container_exec.py

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2021-04-06 23:53:17 +02:00
Felix Fontein 6722435e65 Fix CI for docker-py 5.0.0 (#120)
* ci_complete

* Let's see whether constraints help to avoid installing 5.0.0 with Python < 3.6.
2021-04-06 23:10:03 +02:00
Felix Fontein 30c00c4c26 ansible/ansible's stable-2.11 branch has been created. (#117) 2021-04-06 05:09:38 +00:00
Felix Fontein e9b10ee0a4 Add use_ssh_client flag (#114)
* Add use_ssh_client option.

* Unrelated cleanup (unneeded imports).

* Add SSH connection tests.
2021-04-02 10:14:09 +02:00
Felix Fontein bc096a9ec9 Stop using ansible-galaxy collection install to install a collection due to https://github.com/ansible/galaxy/issues/2429. (#113) 2021-03-27 09:58:35 +01:00
Felix Fontein 89f6691753 Make sure we are logged out. (#112) 2021-03-26 21:37:54 +01:00
Andrew Klychkov 3e98245b23 AZP: update default container version (#110) 2021-03-26 12:49:43 +01:00
Felix Fontein 30af41b2b0 Next expected release is 1.5.0. 2021-03-14 22:56:39 +01:00
Felix Fontein 92db288917 Release 1.4.0. 1.4.0 2021-03-14 22:56:10 +01:00
sgpinkus 149a3abbc3 Fix update_failure_action KeyError in docker_swarm_service (#100)
* Fix update_failure_action KeyError in docker_swarm_service.py

* Update plugins/modules/docker_swarm_service.py

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-03-14 22:52:27 +01:00
Felix Fontein f338f3a5eb Fix docker_swarm_service tests. (#104) 2021-03-14 22:52:05 +01:00
Felix Fontein bfda6439ba Add 1.4.0 release summary. 2021-03-14 22:35:28 +01:00
sgpinkus 5b74313023 Make docker_swarm_service option publish.published_port optional (#101)
* Change docker_swarm_service option publish.published_port from required to optional. If not specified random high port is assigned by docker.

* Update changelogs/fragments/101-make-service-published-port-optional.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-03-13 13:37:56 +01:00