From 88ebf65997179c74917cf38260315ed8c4956006 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 4 Apr 2026 16:29:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20Vagrantfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Vagrantfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Vagrantfile diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..3b58f1b --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,39 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure(2) do |config| + config.vm.box = "centos/7" + + config.vm.provision "ansible" do |ansible| + #ansible.verbose = "vvv" + ansible.playbook = "provisioning/playbook.yml" + ansible.sudo = "true" + end + + + config.vm.provider "virtualbox" do |v| + v.memory = 256 + end + + config.vm.define "ns01" do |ns01| + ns01.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: "dns" + ns01.vm.hostname = "ns01" + end + + config.vm.define "ns02" do |ns02| + ns02.vm.network "private_network", ip: "192.168.50.11", virtualbox__intnet: "dns" + ns02.vm.network "private_network", ip: "192.168.50.12", virtualbox__intnet: "dns" + ns02.vm.hostname = "ns02" + end + + config.vm.define "client" do |client| + client.vm.network "private_network", ip: "192.168.50.15", virtualbox__intnet: "dns" + client.vm.hostname = "client" + end + + config.vm.define "client2" do |client2| + client2.vm.network "private_network", ip: "192.168.50.20", virtualbox__intnet: "dns" + client2.vm.hostname = "client2" + end + +end \ No newline at end of file