-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
31 lines (24 loc) · 726 Bytes
/
Vagrantfile
File metadata and controls
31 lines (24 loc) · 726 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
31
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.box_version = "20230607.0.0"
config.vm.network "private_network", ip: "192.168.56.10"
ENV['VAGRANT_LOG'] = 'info'
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y docker.io docker-compose
systemctl enable docker
systemctl start docker
if ! getent group docker | grep -q vagrant; then
usermod -aG docker vagrant
fi
chmod 666 /var/run/docker.sock
SHELL
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "main.yml"
#ansible.verbose = "vv"
end
end