-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
executable file
·28 lines (26 loc) · 1.04 KB
/
Copy pathVagrantfile
File metadata and controls
executable file
·28 lines (26 loc) · 1.04 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "criptobes3301/ubuntu-20.04"
config.vm.box_version = "1.0"
config.vm.define "admin" do |admin|
admin.vm.network "public_network", ip: "192.168.1.160"
admin.vm.hostname = "otus-bilder-app"
admin.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.cpus = 1
end
end
config.vm.provision "file", source: "access.log", destination: "/tmp/access.log"
config.vm.provision "file", source: "error.log", destination: "/tmp/error.log"
config.vm.provision "file", source: "parse.sh", destination: "/home/vagrant/parse.sh"
config.vm.provision "shell", inline: <<-SHELL
sudo timedatectl set-ntp off
timedatectl set-time "2023-06-17 5:21:37"
sudo chmod 777 /etc/crontab
sudo echo "0 * * * * /home/vagrant/parse.sh -xn /var/lock/parse.lock -c 'sh /home/vagrant/parse.sh'" >> /etc/crontab
sudo chmod 644 /etc/crontab
sudo apt update
SHELL
end