forked from mtds/pxe_srv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
32 lines (25 loc) · 991 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# sync the development repository to the VM
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/srv/pxesrv", type: "rsync", rsync__exclude: ".git/"
# forward the PXESrv default port
config.vm.network "forwarded_port", guest: 4567, host: 4567
config.vm.define "el8" do |config|
config.vm.hostname = "el8"
config.vm.box = "almalinux/8"
# install Ruby Sinatra...
config.vm.provision "shell", privileged: true , inline: <<-SHELL
dnf install -y ruby buildah podman
gem install sinatra
SHELL
end
# make sure to load the development repo...
config.vm.provision "shell", privileged: true, inline: <<-SHELL
echo "source /srv/pxesrv/source_me.sh" > /etc/profile.d/pxesrv.sh
cp /srv/pxesrv/var/systemd/pxesrv.service /etc/systemd/system/
ln -s /srv/pxesrv/pxesrv /usr/sbin/pxesrv
systemctl daemon-reload
SHELL
end