Dave Bendit
b67719ba1d
Docker common consolidation ( #49707 )
...
* [docker] Consolidating Python Boolean conversion for Docker API (#49563 )
* [docker] Consolidating docker option min version checks (#49564 )
* [docker] Moving option min version checks out of docker_swarm (#49564 )
Also renaming Boolean cleanup function and fixing docker_container minimum
version check for network interfaces.
* Cleanup from PR feedback
2018-12-12 09:05:12 +00:00
Felix Fontein
495a426039
docker_swarm: fix minimal API version ( #49691 )
...
* Reduce minimally required docker API version to 1.25, with selective features requiring 1.30.
* Adjust test requirements.
* Forgot some imports.
2018-12-10 14:09:28 +05:30
Dave Bendit
73640a4190
[docker_network] Adding `scope` and `attachable` flags ( #49562 )
...
Incorporating the abandoned work from PRs #35288 and #45552 . Also adding in
the version checking from `docker_container.py`, which should be abstracted
out to `docker_common.py`.
2018-12-06 18:50:45 +00:00
Felix Fontein
0206a46e1d
docker_* modules: updating argument_spec ( #48491 )
...
* Updating argument_spec for docker_* modules.
* Adjust docker_network to work with new recursive argument_spec.
* Adjust device IO limits to recursive argument_spec.
* Improve test (test Ansible's cast from str to int).
* Adjust healthcheck options construction.
* Remove superfluous check.
* Make flake8 happy.
* Simplify comparison.
2018-11-12 11:33:42 +00:00
Thierry Bouvet
87de2dde9f
Fix advertise addr ( #47608 )
...
* Fix issue #46326
* Update example to create a default swarm
2018-11-01 08:10:03 +00:00
John Hu
82f1438b14
Add docker_config module ( #38792 )
...
* Add docker_config module
* Address review comments
* Merge description lines
* Stop returning empty config_id in results
* Add integration tests for docker_config
Based on docker_secret's tests.
* Ensure swarm using docker_swarm module
* Add minimum docker / docker api version requirements
ref: https://github.com/ansible/ansible/pull/47046
* Check Docker API version before running tests
ref: https://github.com/ansible/ansible/pull/47340
* Typo
* Wording
* Improve example
* Assert state == absent is idempotent
2018-10-26 10:58:17 +01:00
Felix Fontein
32e8251f86
docker_* modules: unify docker module version checks ( #47046 )
...
* Unify docker module version checks.
* Improve messages depending on required docker-py versions.
* Linting.
2018-10-18 10:51:58 +01:00
Felix Fontein
765a5130d5
Docker modules: improve documentation on docker vs. docker-py Python package requirements ( #42457 )
...
* Make sure all docker-py/docker requirements are listed, and clarify about docker vs. docker-py.
* Adjusting changes made in #40839 .
2018-07-11 17:57:39 -04:00
Thierry BOUVET
8b9fe42c72
Add new module to create/update a docker swarm. ( #38280 )
...
* Add new module to create/update a docker swarm.
* Fix ansible-test sanity
* Fix requirements
* Fix requirements
* Add tag for author
* Test integration test.
* Fix main.yml
* Add linux arch
* Add template
* Fix test result
* Integration test to create/remove a swarm manager
* fix join test
* Downgrade docker-py
* fix rhel
* Fix review documentation.
* Fix whitespace
* Check docker installation.
* test docker install
* check
* Remove docker socket
* Fix docker install
* Fix sanity test
* Rebase
* Add docker_swarm maintainer
* Fix review
* Fix new version.
* Add docker default values
* Fix description.
* Reworked documentation
* Fix YAML error
* Rebase
* Fix example for update state.
* Fix idempotent states. Fix states: present/absent.
* Fix sanity
* Fix variables sanity
* Update example for absent state.
* fix sanity
* Wrap the contents of error message in to_native.
Co-authored by: Dag Wieers <dag@wieers.com>
2018-06-08 10:45:09 -04:00