```ruby
require 'beaker-rspec'

# Install Puppet agent on all hosts
install_puppet_agent_on(hosts, {})

RSpec.configure do |c|
  c.formatter = :documentation
  module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  c.before :suite do
    # Install module to all hosts
    install_dev_puppet_module(source: module_root)

    # Install dependencies
    hosts.each do |host|
      on(host, puppet('module', 'install', 'puppetlabs-stdlib'))
      on(host, puppet('module', 'install', 'stahnma-epel'))
      on(host, puppet('module', 'install', 'puppetlabs-apt'))
    end
  end
end
```

Install net-tools for netstat command
user
```ruby
require 'beaker-rspec'

# Install Puppet agent on all hosts
install_puppet_agent_on(hosts, {})

RSpec.configure do |c|
  c.formatter = :documentation
  module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  c.before :suite do
    # Install module to all hosts
    install_dev_puppet_module(source: module_root)

    # Install dependencies
    hosts.each do |host|
      on(host, puppet('module', 'install', 'puppetlabs-stdlib'))
      on(host, puppet('module', 'install', 'stahnma-epel'))
      on(host, puppet('module', 'install', 'puppetlabs-apt'))

      if host.platform =~ /(debian|ubuntu)/
        apply_manifest_on(host, "package { 'net-tools': ensure => installed }")
      end
    end
  end
end
```
assistant