-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (25 loc) · 1.25 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "puphpet/ubuntu1604-x64"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
# config.vm.synced_folder "~/.gnupg", "/home/vagrant/.gnupg"
config.vm.synced_folder ".", "/home/vagrant/project"
config.vm.network "forwarded_port", guest: 80, host: 8880
# Enable provisioning with a shell script.
config.vm.provision "file", source: "~/.gnupg", destination: ".gnupg"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y reprepro
apt-get install -y apt-transport-https
apt-key adv --keyserver hkps://keys.openpgp.org --recv-keys 0155C4D10DF6BCD9999926ED1EF8A2E31219144C
add-apt-repository "deb https://raw.githubusercontent.com/koelle25/icinga2-zulip-notifications/debian_repo_test/reprepro general main"
apt-get update
SHELL
end