Sha256: 2953a590f880cbe9eac64763e65f58f373d119fd2d6de0bfcd22dbcc156f8096

Contents?: true

Size: 704 Bytes

Versions: 6

Compression:

Stored size: 704 Bytes

Contents

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = 'bento/ubuntu-22.10'

  config.vm.boot_timeout = 600 # seconds
  config.ssh.insert_key = false
  config.vm.provision "shell", inline: <<-SHELL
  echo 'ClientAliveInterval 3' >> /etc/ssh/sshd_config
  echo 'ClientAliveCountMax 3' >> /etc/ssh/sshd_config
  echo 'MaxAuthTries 6' >> /etc/ssh/sshd_config
  service ssh restart
  SHELL

  json_config_path = File.join("test", "boxes.json")
  list = File.open(json_config_path).read
  list = JSON.parse(list)

  list.each do |vm|
    config.vm.define vm["name"] do |web|
      web.vm.network "forwarded_port", guest: 22, host: vm["port"]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sshkit-1.22.2 Vagrantfile
sshkit-1.22.1 Vagrantfile
sshkit-1.22.0 Vagrantfile
sshkit-1.21.7 Vagrantfile
sshkit-1.21.6 Vagrantfile
sshkit-1.21.5 Vagrantfile