1
1
This commit is contained in:
Márkus Sándor 2023-06-27 13:16:55 +02:00
parent 4f2931e18b
commit 4be2e95a63

View File

@ -9,3 +9,23 @@ Vagrant.configure("2") do |config|
end end
``` ```
Erről írtam egy cikket [itt](https://msandor.hu/vagrant-teszt-kornyezet-villamgyorsan/). Erről írtam egy cikket [itt](https://msandor.hu/vagrant-teszt-kornyezet-villamgyorsan/).
## 2.0
Több lépésben jutottunk el a 2.0-s Vagrantfile-hoz, bővült az erőforrás (cpu, mem), kapott dedikált hálókártyát, és telepítéskor lefuttat pár parancsot is.
Kommentek nélkül így néz ki:
```yaml
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.56.2"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
yum install mc epel-release httpd net-tools -y
yum update -y --skip-broken
systemctl enable --now httpd
SHELL
end
```
Erről is írtam egy cikket [itt](https://msandor.hu/lepjunk-szintet-a-vagranttal/).