This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
39 lines (38 loc) · 1.49 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
31
32
33
34
35
36
37
38
39
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# OpenSUSE
config.vm.define "opensuse" do |machine|
machine.vm.box = "opensuse/Leap-15.2.x86_64"
machine.vm.box_url = machine.vm.box
machine.vm.provider "virtualbox" do |p|
p.memory = 1536
p.cpus = 1
end
end
config.vm.define "opensuse" do |machine|
machine.vm.provision :shell, :inline => "hostnamectl set-hostname opensuse"
machine.vm.provision :shell, :inline => "zypper install -y -t pattern apparmor"
machine.vm.provision :shell, :inline => "zypper install -y apparmor-utils"
machine.vm.provision :shell, :inline => "systemctl enable apparmor"
machine.vm.provision :shell, :inline => "systemctl start apparmor"
machine.vm.provision :shell, :inline => "zypper install -y pv"
end
# Ubuntu
config.vm.define "ubuntu" do |machine|
machine.vm.box = "ubuntu/focal64"
machine.vm.box_url = machine.vm.box
machine.vm.provider "virtualbox" do |p|
p.memory = 1536
p.cpus = 2
end
end
config.vm.define "ubuntu" do |machine|
machine.vm.provision :shell, :inline => "hostnamectl set-hostname ubuntu"
machine.vm.provision :shell, :inline => "apt-get update"
machine.vm.provision :shell, :inline => "apt-get install -y apparmor-utils"
machine.vm.provision :shell, :inline => "systemctl enable apparmor"
machine.vm.provision :shell, :inline => "systemctl start apparmor"
machine.vm.provision :shell, :inline => "apt-get install -y pv"
end
end