forked from prophile/srcompbox-2015
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
26 lines (22 loc) · 838 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.network "public_network"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.hostname = "compbox.srobo"
config.ssh.private_key_path = ['~/.vagrant.d/insecure_private_key', '~/.ssh/id_ed25519']
config.ssh.insert_key = false
# Bootstrap
config.vm.provision "shell", inline: "
(which git && which puppet) > /dev/null || \
(apt-get update && apt-get install -y puppet git)
"
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "vagrant.pp"
puppet.module_path = "modules"
# puppet.options = "--debug --verbose"
end
end