diff options
Diffstat (limited to 'local_testing/Vagrantfile')
| -rw-r--r-- | local_testing/Vagrantfile | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/local_testing/Vagrantfile b/local_testing/Vagrantfile new file mode 100644 index 0000000..3ba743f --- /dev/null +++ b/local_testing/Vagrantfile @@ -0,0 +1,91 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.box = "bento/debian-11" + config.vm.box_version = "202212.11.0" + config.vm.provision "shell", inline: <<-SHELL + apt-get update + apt-get install -y python3 python3-pip openssh-server + systemctl enable ssh + SHELL + + config.vm.define "control", primary: true do |control| + control.vm.hostname = "control" + control.vm.network "private_network", ip: "192.168.56.1", + virtualbox__intnet: true + control.vm.synced_folder "../", "/home/vagrant/infra" + control.vm.provision "shell", inline: <<-SHELL + apt-get install -y sshpass + SHELL + + control.vm.provision "shell", privileged: false, inline: <<-SHELL + python3 -m pip install --user ansible dnspython + ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< y + SHELL + + control.vm.provider "virtualbox" do |v| + v.name = "pydis_control" + end + end + + config.vm.define "hopper" do |hopper| + hopper.vm.hostname = "hopper" + hopper.vm.network "private_network", ip: "192.168.56.2", + virtualbox__intnet: true + hopper.vm.synced_folder '.', '/vagrant', disabled: true + + hopper.vm.provider "virtualbox" do |v| + v.name = "pydis_hopper" + v.memory = 2048 + end + end + + config.vm.define "lovelace" do |lovelace| + lovelace.vm.hostname = "lovelace" + lovelace.vm.network "private_network", ip: "192.168.56.3", + virtualbox__intnet: true + lovelace.vm.synced_folder '.', '/vagrant', disabled: true + + lovelace.vm.provider "virtualbox" do |v| + v.name = "pydis_lovelace" + v.memory = 2048 + end + end + + config.vm.define "neumann" do |neumann| + neumann.vm.hostname = "neumann" + neumann.vm.network "private_network", ip: "192.168.56.4", + virtualbox__intnet: true + neumann.vm.synced_folder '.', '/vagrant', disabled: true + + neumann.vm.provider "virtualbox" do |v| + v.name = "pydis_neumann" + v.memory = 2048 + end + end + + config.vm.define "ritchie" do |ritchie| + ritchie.vm.hostname = "ritchie" + ritchie.vm.network "private_network", ip: "192.168.56.5", + virtualbox__intnet: true + ritchie.vm.synced_folder '.', '/vagrant', disabled: true + + ritchie.vm.provider "virtualbox" do |v| + v.name = "pydis_ritchie" + v.memory = 2048 + end + end + + config.vm.define "turing" do |turing| + turing.vm.hostname = "turing" + turing.vm.network "private_network", ip: "192.168.56.6", + virtualbox__intnet: true + turing.vm.synced_folder '.', '/vagrant', disabled: true + + turing.vm.provider "virtualbox" do |v| + v.name = "pydis_turing" + v.memory = 2048 + end + end +end |