-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathVagrantfile
32 lines (28 loc) · 1.06 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# Ansible server to be build on Ubuntu 14.04
config.vm.define "ansible" do |ansible|
ansible.vm.box = "ubuntu/trusty64"
ansible.vm.hostname = "ansible"
ansible.vm.network "private_network", ip: "10.1.1.5", netmask: "24"
ansible.vm.provision :shell, path: "ansibleboot.sh"
end
# Web01 Server - Ubuntu 14.04
config.vm.define "web01" do |web01|
web01.vm.box = "ubuntu/trusty64"
web01.vm.hostname = "web01"
web01.vm.network "private_network", ip: "10.1.1.11", netmask: "24"
web01.vm.network "forwarded_port", guest: 80, host:8080
end
# db01 Server - Ubuntu 14.04
config.vm.define "db01" do |db01|
db01.vm.box = "ubuntu/trusty64"
db01.vm.hostname = "db01"
db01.vm.network "private_network", ip: "10.1.1.21", netmask: "24"
end
end