Skip to content

Commit

Permalink
spec_helper_acceptance: add abbility to enable Ipv6 in beaker hosts
Browse files Browse the repository at this point in the history
Enabled by default
Also see: voxpupuli/modulesync_config#694
  • Loading branch information
b4ldr committed Dec 22, 2020
1 parent ddcf483 commit 6691b94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/voxpupuli/acceptance/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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|
Expand Down

0 comments on commit 6691b94

Please sign in to comment.