Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for docker init --data-path-addr #339

Open
stmuraka opened this issue Apr 19, 2022 · 1 comment
Open

Add support for docker init --data-path-addr #339

stmuraka opened this issue Apr 19, 2022 · 1 comment
Labels
docker-swarm Docker Swarm enhancement New feature or request

Comments

@stmuraka
Copy link

stmuraka commented Apr 19, 2022

The --data-path-addr parameter allows configuration for the Services to be exposed on a different interface as described here:
https://docs.docker.com/engine/swarm/networking/#use-a-separate-interface-for-control-and-data-traffic. It is currently missing from the latest docker_swarm module https://docs.ansible.com/ansible/latest/collections/community/docker/docker_swarm_module.html#ansible-collections-community-docker-docker-swarm-module

The Docker SDK for Python supports the param in the init() and join() functions (as data_path_addr) and in the low-level APIs

init_swarm(advertise_addr=None, listen_addr='0.0.0.0:2377', force_new_cluster=False, swarm_spec=None, default_addr_pool=None, subnet_size=None, data_path_addr=None)
join_swarm(remote_addrs, join_token, listen_addr='0.0.0.0:2377', advertise_addr=None, data_path_addr=None)
@felixfontein felixfontein added enhancement New feature or request docker-swarm Docker Swarm labels Apr 19, 2022
chrische added a commit to chrische/ansible-collections.community.docker that referenced this issue May 2, 2022
chrische added a commit to chrische/ansible-collections.community.docker that referenced this issue May 2, 2022
@chrische
Copy link
Contributor

chrische commented May 2, 2022

Same wish here, @stmuraka.

My PR might need some further fine tuning, but so far I got it working on my end (#344).

felixfontein added a commit that referenced this issue May 9, 2022
#344)

* adds data_path_addr option for swarm init and swarm join. (#339)

* adds changelog fragment (#339)

* adds formatting to changelog entry

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

* adds version to doc entry in ansible_swarm

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

* rewrites doc entry to formal language

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

* Correct docker api version (src: docker api docs)

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

Co-authored-by: Felix Fontein <felix@fontein.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-swarm Docker Swarm enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants