diff --git a/lib/voxpupuli/acceptance/spec_helper_acceptance.rb b/lib/voxpupuli/acceptance/spec_helper_acceptance.rb index cf2e8df..4489d45 100644 --- a/lib/voxpupuli/acceptance/spec_helper_acceptance.rb +++ b/lib/voxpupuli/acceptance/spec_helper_acceptance.rb @@ -25,7 +25,7 @@ def write_beaker_facts_on(hosts) end end -def configure_beaker(modules: :metadata, configure_facts_from_env: true, &block) +def configure_beaker(modules: :metadata, configure_facts_from_env: true, enable_ipv6: true, &block) ENV['PUPPET_INSTALL_TYPE'] ||= 'agent' ENV['BEAKER_PUPPET_COLLECTION'] ||= 'puppet6' ENV['BEAKER_debug'] ||= 'true' @@ -61,6 +61,7 @@ def configure_beaker(modules: :metadata, configure_facts_from_env: true, &block) end write_beaker_facts_on(hosts) if configure_facts_from_env + on(hosts, 'sysctl net.ipv6.conf.all.disable_ipv6=0') if enable_ipv6 if block hosts.each do |host|