Last change
on this file since 17939 was
14922,
checked in by uli, 7 years ago
|
Provide different Vagrantfiles for different purposes.
|
File size:
649 bytes
|
Line | |
---|
1 | # -*- mode: ruby -*- |
---|
2 | # vi: set ft=ruby : |
---|
3 | |
---|
4 | hosts = { |
---|
5 | "vh5" => "192.168.36.10", |
---|
6 | "vh6" => "192.168.36.11", |
---|
7 | "vh7" => "192.168.36.12" |
---|
8 | } |
---|
9 | |
---|
10 | Vagrant.configure("2") do |config| |
---|
11 | hosts.each do |name, ip| |
---|
12 | config.vm.define name do |machine| |
---|
13 | machine.vm.box = "ubuntu/trusty32" |
---|
14 | machine.vm.hostname = "%s.sample.org" % name |
---|
15 | machine.vm.network :private_network, ip: ip |
---|
16 | machine.vm.provider "virtualbox" do |v| |
---|
17 | v.name = name |
---|
18 | v.customize ["modifyvm", :id, "--memory", 200] |
---|
19 | end |
---|
20 | machine.vm.provision "ansible" do |ansible| |
---|
21 | ansible.playbook = "vagrant-provision.yml" |
---|
22 | end |
---|
23 | end |
---|
24 | end |
---|
25 | end |
---|
Note: See
TracBrowser for help on using the repository browser.