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 setting to enable ipv6 in docker networks #3218

Closed
wants to merge 2 commits into from

Conversation

tilosp
Copy link
Contributor

@tilosp tilosp commented Mar 9, 2024

For this to work the docker daemon has to be configured for ipv6: https://docs.docker.com/config/daemon/ipv6/

spantaleev added a commit to devture/com.devture.ansible.role.systemd_docker_base that referenced this pull request Mar 24, 2024
spantaleev added a commit to mother-of-all-self-hosting/mash-playbook that referenced this pull request Mar 24, 2024
spantaleev added a commit that referenced this pull request Mar 24, 2024
commit cf8637efaca0a0be3609fd6add0dff893a0a9194
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Sun Mar 24 19:14:57 2024 +0200

    Make devture_systemd_docker_base_ipv6_enabled automatically reconfigure geerlingguy/ansible-role-docker

    Related to #3218

commit dc7af3bc7d25f321bf409477d823e43ea8a05803
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Sun Mar 24 19:10:31 2024 +0200

    Replace matrix_ipv6_enabled with devture_systemd_docker_base_ipv6_enabled

    Related to #3218

commit 07e900d
Author: Slavi Pantaleev <slavi@devture.com>
Date:   Sun Mar 24 19:01:51 2024 +0200

    Improve matrix_ipv6_enabled comments

commit 3f03ca7
Author: Tilo Spannagel <development@tilosp.de>
Date:   Sat Mar 9 19:27:50 2024 +0000

    Add setting to enable ipv6
@spantaleev
Copy link
Owner

I've reworked this to be based on devture_systemd_docker_base_ipv6_enabled, which is not part of the systemd-docker-base role - see here.

I've also added support for auto-reconfiguring our Docker role (geerlingguy/ansible-role-docker) based on the value of devture_systemd_docker_base_ipv6_enabled.

Still, existing installations will probably need to follow the instructions for deleting existing container networks to have changes to devture_systemd_docker_base_ipv6_enabled take effect. New installations with devture_systemd_docker_base_ipv6_enabled: true should work seamlessly - Docker should be auto-reconfigured and all container networks should get IPv6 support.

It should also be noted that not all roles used by this playbook respect the devture_systemd_docker_base_ipv6_enabled variable yet. Many roles are external (installed via ansible-galaxy into roles/galaxy) - none of those respect the devture_systemd_docker_base_ipv6_enabled variable yet, but can be adjusted to do so. They all implicitly depend on the systemd-docker-base role, so they can directly start referencing the new devture_systemd_docker_base_ipv6_enabled variable.

@spantaleev spantaleev closed this Mar 24, 2024
spantaleev added a commit that referenced this pull request Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants