Sha256: fc526e99edb65ab80e60956eca6c8f075b99315eaab1af16438006273b430c6e

Contents?: true

Size: 592 Bytes

Versions: 24

Compression:

Stored size: 592 Bytes

Contents

test_name "Stop firewall" do
  skip_test 'not testing with puppetserver' unless @options['is_puppetserver']
  hosts.each do |host|
    case host['platform']
    when /debian/
      on host, 'iptables -F'
    when /fedora|el-7/
      on host, puppet('resource', 'service', 'firewalld', 'ensure=stopped')
    when /el-|centos/
      on host, puppet('resource', 'service', 'iptables', 'ensure=stopped')
    when /ubuntu/
      on host, puppet('resource', 'service', 'ufw', 'ensure=stopped')
    else
      logger.notify("Not sure how to clear firewall on #{host['platform']}")
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
beaker-puppet-1.8.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.7.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.6.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.5.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.4.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.3.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.2.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.1.0 setup/common/025_StopFirewall.rb
beaker-puppet-1.0.1 setup/common/025_StopFirewall.rb
beaker-puppet-1.0.0 setup/common/025_StopFirewall.rb
beaker-puppet-0.17.1 setup/common/025_StopFirewall.rb
beaker-puppet-0.17.0 setup/common/025_StopFirewall.rb
beaker-puppet-0.16.0 setup/common/025_StopFirewall.rb
beaker-puppet-0.15.2 setup/common/025_StopFirewall.rb
beaker-puppet-0.15.1 setup/common/025_StopFirewall.rb
beaker-puppet-0.15.0 setup/common/025_StopFirewall.rb
beaker-puppet-0.14.0 setup/common/025_StopFirewall.rb
beaker-puppet-0.13.6 setup/common/025_StopFirewall.rb
beaker-puppet-0.13.5 setup/common/025_StopFirewall.rb
beaker-puppet-0.13.4 setup/common/025_StopFirewall.rb