-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathVagrantfile
More file actions
30 lines (24 loc) · 731 Bytes
/
Vagrantfile
File metadata and controls
30 lines (24 loc) · 731 Bytes
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
provision_ubuntu = <<EOF
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y devscripts equivs
chmod a+w / # necessary for dpkg-genchanges to write to ..
cd /vagrant
mk-build-deps --install --tool='apt-get --no-install-recommends -y'
EOF
provision_fedora = <<EOF
sudo dnf install -y make rpmdevtools
rpmdev-setuptree
cd /vagrant
sudo dnf builddep -y *.spec
EOF
Vagrant.configure(2) do |config|
config.vm.define 'ubuntu' do |ubuntu|
ubuntu.vm.box = 'ubuntu/trusty64'
ubuntu.vm.provision 'shell', inline: provision_ubuntu
end
config.vm.define 'fedora' do |fedora|
fedora.vm.box = 'bento/fedora-28'
fedora.vm.provision 'shell', privileged: false, inline: provision_fedora
end
end