forked from inframate/Vagrant-Guacamole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrantfile
45 lines (26 loc) · 834 Bytes
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- mode: ruby -*-
# vi: set ft=ruby :
hosts = {
"GuacamoleVM" => "192.168.88.100",
}
Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-7.1"
# config.ssh.insert_key = false
# config.ssh.private_key_path = ["id_rsa", "~/.vagrant.d/insecure_private_key"]
# config.vm.provision "file", source: "id_rsa.pub", destination: "~/.ssh/authorized_keys"
config.vm.provision :shell, path: "Provision-script.sh"
hosts.each do |name, ip|
config.vm.define name do |machine|
machine.vm.network :private_network, ip: ip
machine.vm.provider "virtualbox" do |v|
v.name = name
v.customize [
"modifyvm", :id,
"--memory", "1024",
"--cpus", "1"
]
end
machine.vm.hostname = name
end
end
end