Vagrantfile 702 Bytes
Newer Older
1 2 3 4 5
Vagrant.require_version ">= 1.7.0"

Vagrant.configure(2) do |config|

  config.vm.box = "ubuntu/bionic64"
Mike Kusold's avatar
Mike Kusold committed
6
  config.disksize.size = "20GB"
7 8 9

  config.ssh.insert_key = false

Nick Busey's avatar
Nick Busey committed
10 11 12 13
  config.vm.network "forwarded_port", id: "http", guest: 80, host: 2280, auto_correct: true
  config.vm.network "forwarded_port", id: "https", guest: 443, host: 2281, auto_correct: true
  config.vm.network "forwarded_port", id: "traefik-dashboard", guest: 8181, host: 2282, auto_correct: true

14
  config.vm.provision "ansible" do |ansible|
15
    ansible.playbook = "playbook.homelabos.yml"
Nick Busey's avatar
Nick Busey committed
16 17 18 19 20
    ansible.groups = {
      "homelabos" => ["default"],
      "vagrant" => ["default"],
    }
    ansible.extra_vars = 'config.yml'
21 22
  end
end