Добавить Vagrantfile
This commit is contained in:
26
Vagrantfile
vendored
Normal file
26
Vagrantfile
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
Vagrant.configure(2) do |config|
|
||||
|
||||
config.vm.box = "ubuntu/jammy64"
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = 512
|
||||
vb.cpus = 1
|
||||
end
|
||||
|
||||
config.vm.define "vpn-server" do |conf|
|
||||
conf.vm.network "private_network", ip: "10.10.1.10", virtualbox__intnet: "net_01"
|
||||
conf.vm.hostname = "vpn-server"
|
||||
end
|
||||
|
||||
config.vm.define "vpn-client" do |conf|
|
||||
conf.vm.network "private_network", ip: "10.10.1.20", virtualbox__intnet: "net_01"
|
||||
conf.vm.hostname = "vpn-client"
|
||||
end
|
||||
|
||||
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "ansible.yml"
|
||||
ansible.become = "true"
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user