Commit Graph

369 Commits

Author SHA1 Message Date
Felix Fontein f5d68755c4 Fix healthcheck idempotency issue with strict comparison. (#88) 2021-02-17 22:56:52 +01:00
Felix Fontein 5fd13c79b6 Update targets for CI for devel branch; move some targets to stable-2.10. (#84) 2021-02-10 22:54:10 +01:00
Felix Fontein a3f6f1399f Bump AZP test container version. (#83) 2021-02-10 13:44:50 +01:00
Felix Fontein 5456006169 Fix CI (#82)
* Limit cryptography to < 3.4 for Python < 3.6.

* Work around old pip versions.
2021-02-09 06:47:26 +01:00
Felix Fontein 2d8f23822b Next expected release is 1.3.0. 2021-02-05 18:23:49 +01:00
Felix Fontein bbf8373f6c Release 1.2.2. 1.2.2 2021-02-05 17:52:24 +01:00
Felix Fontein 2d48253b6d Prepare 1.2.2 release. 2021-02-05 17:51:48 +01:00
David Moreau Simard 58babf738b docker swarm - Add no_log to the signing_ca_key argument (#80)
* docker swarm - Add no_log to the signing_ca_key argument

This will prevent accidental disclosure.

See: CVE-2021-20191

* Update changelogs/fragments/CVE-2021-20191_no_log.yml

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-02-04 21:03:43 +01:00
Felix Fontein fc2e14970b Fedora 30 and 31 are EOL and will eventually be removed from devel. (#77) 2021-02-01 15:31:07 +00:00
Felix Fontein dffbca3847 Use ipaddress vendored in community.crypto. (#78) 2021-01-30 16:00:16 +01:00
Felix Fontein d2e0da11e7 Next expected release is 1.3.0. 2021-01-28 08:28:25 +01:00
Felix Fontein bcd1201af6 Release 1.2.1. 1.2.1 2021-01-28 07:43:11 +01:00
Felix Fontein e957b885f8 Prepare 1.2.1 bugfix release. 2021-01-28 07:41:44 +01:00
Romain Lalaut 43cbe3095b docker.py: allow docker versions beginning with 'v' (#76)
* docker.py: allow docker versions with a leading 'v'

* Update changelogs/fragments/76-leading-v-support-in-docker-version.yml

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

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-01-27 14:16:35 +00:00
Felix Fontein a298906dbe Next expected release is 1.3.0. 2021-01-25 18:31:12 +01:00
Felix Fontein 4df5a7468a Release 1.2.0 1.2.0 2021-01-25 17:58:21 +01:00
Felix Fontein fa18833c10 Add release summary. 2021-01-25 17:14:05 +01:00
Felix Fontein 8702713ac3 docker_image: do not crash in load_image for docker-py < 2.5.0. (#73)
* Avoid crash for docker-py < 2.5.0.

* Add warnings when load_image does not return a generator.

* Add test.

* Update plugins/modules/docker_image.py

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

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2021-01-25 15:17:04 +01:00
Felix Fontein c1e6c2e699 Fix IPv6 zone handling (#66)
* Support IPv6 zones (RFC 4007).

* Add changelog fragment.

* Remove change for docker_network.

* Add IPv6 zone test.

It looks like an arbitrary zone name works. If Docker daemon ever starts
validating it (against what?) we either have to try to fix this test by
a valid value, or remove it again.
2021-01-25 15:16:35 +01:00
Felix Fontein 9a1018f479 Add Ubuntu 20.04 to CI. (#75) 2021-01-22 20:43:21 +00:00
Felix Fontein 2ad8a0812a Fix changelog fragment. 2021-01-22 07:58:40 +01:00
Felix Fontein 6adb148675 Add default_host_ip option. (#71) 2021-01-20 23:53:23 +01:00
Felix Fontein 5072b7d1c3 Remove shippable config. 2021-01-12 21:42:34 +01:00
Felix Fontein 477e781054 Next release is expected to be 1.2.0. 2021-01-03 13:44:29 +01:00
Felix Fontein 9fa08824e2 Release 1.1.0. 1.1.0 2021-01-03 13:43:34 +01:00
Felix Fontein 04f5c7e0c9 Add 1.1.0 release summary. 2021-01-03 13:43:04 +01:00
Felix Fontein c7a3d9f057 docker_container: cgroup_parent (#59)
* Document that the Docker SDK for Python is used by the module.

* Allow to specify cgroup_parent for container.
2021-01-03 13:30:09 +01:00
Felix Fontein e4b747d788 docker_container: return status also when 0 for non-detached containers (#58)
* Return status also when 0.

* Fix PR number.
2021-01-02 18:53:25 +01:00
Felix Fontein 9b131399ce Docker inventory plugin (#61)
* Began with docker inventory plugin.

* Linting.

* Improve plugin, add basic unit tests.

* Linting.

* Add integration test.

* Adjust tests to case that there are more containers.

* There can be stopped containers.

ci_coverage

* docker -> docker_containers
2020-12-30 08:44:24 +01:00
Felix Fontein 2a0fb7d3ed Refactor docker_image line extraction code. (#62) 2020-12-28 15:16:35 +01:00
Felix Fontein a11f24c3a9 Fix docker_api connection: do not initialize client too early (#63)
* Fix docker_api connection: do not initialize client too early

* Make sure connection plugin tests are also run with Ansible 2.9 and 2.10.
2020-12-27 16:13:40 +01:00
Felix Fontein 5eef093e99 Check output of load_image and react upon. (#55) 2020-12-27 15:04:38 +01:00
Felix Fontein 1277942a4e Deprecate current behavior when specifying all with other port mappings. (#60) 2020-12-26 18:20:52 +01:00
Felix Fontein 117f132213 docker_image: always push, also when tagging is not necessary (#53)
* Always push, also when tagging is not necessary.

* Add tests.

* Fix tests.
2020-12-26 18:20:28 +01:00
Felix Fontein d40c2409d3 docker_image: allow to specify build platform (#54)
* Allow to specify build platform.

* Add basic tests.
2020-12-25 19:01:37 +01:00
Felix Fontein 5fa53e2eeb Improve tests: don't install daemon when running inside a container (#56)
* If running inside a container, only install docker CLI, not docker daemon.

ci_complete

* Fix OpenSUSE.
2020-12-23 13:36:40 +01:00
Felix Fontein a1a7692e74 Remove Shippable badge. 2020-12-18 17:24:14 +01:00
John R Barker c549e7a1cd AZP Coverage support for Ansible 2.9 (#51)
Pull in latest changes from shippable-migration-tool
ci_complete ci_coverage
2020-12-16 11:42:20 +00:00
Felix Fontein 8bd33b06c4 docker_api connection plugin (#40)
* Add basic docker_api connection test.

* Split AnsibleDockerClient into module-independent and module-specific part.

* Mention new connection plugin.

* Fix tests.

* Add first version of docker_api connection plugin.

* Linting.

* Fix references.

* Improve connection tests.

* Fix put_file for all Python versions.

* Fix fetch_file.

* Linting.

* Update plugins/connection/docker_api.py

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

* Move potential common code to module_utils / plugin_utils.

* Move socket_handler to plugin_utils.

* Fix typo.

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-12-15 20:07:55 +00:00
Felix Fontein ebafa17b02 [WIP] Fix CI (#50)
* Centralize location of images for runme.sh tests.

* Switch images.

* Fix sanity.

* Fix image names.

* Fix tag chaos.

* One more.
2020-12-15 13:57:38 +01:00
Felix Fontein fe2d52ff29 Fix AZP tests, add current_container_facts module (#48)
* Add new facts module for determining whether the module is running inside a container or not.

* Add containers to main network.

* Fix running tests locally with newer docker.

* Simplify setup_openssl to only install cryptography.

* Add alias in network.

* Make sure to upgrade cryptography to something more sensible on Ubuntu 16.04.

* Don't jump through hoops for bridge.

* Try to use other IPv4 nets.

* Improve module docs.
2020-12-13 08:06:16 +00:00
Felix Fontein 4cc4766ddb Next expected release is 1.1.0. 2020-12-11 21:28:15 +01:00
Felix Fontein 7dd28ecdfe Release 1.0.1. 1.0.1 2020-12-11 21:27:28 +01:00
Felix Fontein 2bf46c2eb2 Fix docker_image test. (#47)
ci_complete
2020-12-11 21:12:48 +01:00
Felix Fontein ab9fb3f604 Prepare 1.0.1 release. 2020-12-11 20:41:04 +01:00
John Barker 04c0b726ea AZP: Install ansible-test for coverage 2020-12-11 15:35:08 +00:00
John R Barker 4287618d3a AZP: fedora32 doesn't exist on Ansible 2.9 2020-12-11 13:55:04 +00:00
John R Barker 3955955b37 Remove PATH hack (#44)
* Remove PATH hack

azure-pipelines-test-container:1.7.1 contains a proper fix for ensuring
PATH contains the location of pip installed binaries so we can remove
the hack.

* Correct RHEL groups
2020-12-11 13:54:14 +00:00
John R Barker af05acdc3b README.md: Correct AZP Badge link 2020-12-11 13:19:01 +00:00
John R Barker 3de2cb6982 Correct stage name 2020-12-10 19:28:53 +00:00