spec_helper_acceptance: add abbility to enable Ipv6 in beaker hosts#16
spec_helper_acceptance: add abbility to enable Ipv6 in beaker hosts#16b4ldr wants to merge 1 commit intovoxpupuli:masterfrom
Conversation
|
Yes its been in use in the unbound module for some time and works as expected. I have also used it in other projects but that was some time ago |
| end | ||
|
|
||
| write_beaker_facts_on(hosts) if configure_facts_from_env | ||
| on(hosts, 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6') if enable_ipv6 |
There was a problem hiding this comment.
i originally used sysctl net.ipv6.conf.all.disable_ipv6=0 but sysctl isn't installed on fedora by default.
Tested and working however when i tested locally (with a plain docker image) i noticed that /proc/sys is mounted readonly. As such im gussing beaker takes care of making sure this is mounted with rw? |
confirmed beaker starts the container with |
|
I think that does mean you modify sysctl from the host, which can be nasty as well. I'll submit a PR to unbound to use some ULA subnet instead of a global one to see if that passes. |
that's not correct for this parameter and most kernel parameters they have there own cgroup/namespace see below:
hmm setting the following *fyi which ever fix needs to be made in modsync_config not puppet-unbound |
|
I thought a bit more about it. One thing I like about doing it via a sysctl is that you are less dependent on the environment so you can reproduce it locally. Later I'll see about merging your PRs but now it's time to call it a day. |
|
I forgot about this, but I've since taken a difference approach and use I'd also be ok with not solving it in this library but rather keep it up to the modules to fix it. |
Enabled by default Also see: voxpupuli/modulesync_config#694
|
Sorry i missed this, have rebased now
On the one hand this seems to only affect a small subset of modules so perhaps not worth it. On the other hand its a very minor addition and could save someone from scratching there head when implementing acceptance test. as such i would favour adding it |
Enabled by default
Also see: voxpupuli/modulesync_config#694