Sha256: 6abda1b548d69442f394cde4eed145b51f1ba2fbfae1663c706f6adebc2144e2

Contents?: true

Size: 1.33 KB

Versions: 20

Compression:

Stored size: 1.33 KB

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 sw=2 tw=0 et :

role = File.basename(File.expand_path(File.dirname(__FILE__)))

boxes = [
  {
    :name => "ubuntu-1204",
    :box => "bento/ubuntu-12.04",
    :ip => '10.0.0.11',
    :cpu => "50",
    :ram => "256"
  },
  {
    :name => "ubuntu-1404",
    :box => "bento/ubuntu-14.04",
    :ip => '10.0.0.12',
    :cpu => "50",
    :ram => "256"
  },
  {
    :name => "ubuntu-1604",
    :box => "bento/ubuntu-16.04",
    :ip => '10.0.0.13',
    :cpu => "50",
    :ram => "256"
  },
  {
    :name => "debian-711",
    :box => "bento/debian-7.11",
    :ip => '10.0.0.14',
    :cpu => "50",
    :ram => "256"
  },
  {
    :name => "debian-86",
    :box => "bento/debian-8.6",
    :ip => '10.0.0.15',
    :cpu => "50",
    :ram => "256"
  },
]

Vagrant.configure("2") do |config|
  boxes.each do |box|
    config.vm.define box[:name] do |vms|
      vms.vm.box = box[:box]
      vms.vm.hostname = "ansible-#{role}-#{box[:name]}"

      vms.vm.provider "virtualbox" do |v|
        v.customize ["modifyvm", :id, "--cpuexecutioncap", box[:cpu]]
        v.customize ["modifyvm", :id, "--memory", box[:ram]]
      end

      vms.vm.network :private_network, ip: box[:ip]

      vms.vm.provision :ansible do |ansible|
        ansible.playbook = "tests/vagrant.yml"
        ansible.verbose = "vv"
      end
    end
  end
end

Version data entries

20 entries across 13 versions & 1 rubygems

Version Path
taperole-2.1.1 vendor/ansible-sysfs/Vagrantfile
taperole-2.1.0 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.7 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.6 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.5 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.4 vendor/tersmitten.htop/Vagrantfile
taperole-2.0.4 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.3 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.3 vendor/tersmitten.htop/Vagrantfile
taperole-2.0.2 vendor/tersmitten.htop/Vagrantfile
taperole-2.0.2 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.1 vendor/tersmitten.htop/Vagrantfile
taperole-2.0.1 vendor/ansible-sysfs/Vagrantfile
taperole-2.0.0 vendor/tersmitten.htop/Vagrantfile
taperole-2.0.0 vendor/ansible-sysfs/Vagrantfile
taperole-1.8.2 vendor/ansible-sysfs/Vagrantfile
taperole-1.8.2 vendor/tersmitten.htop/Vagrantfile
taperole-1.8.1 vendor/ansible-sysfs/Vagrantfile
taperole-1.8.1 vendor/tersmitten.htop/Vagrantfile
taperole-1.8.0 vendor/tersmitten.htop/Vagrantfile