Vagrant.configure("2") do |config| config.vm.define 'srv' do |config| config.vm.box = "debian/bullseye64" config.vm.hostname = "srv" config.vm.network "private_network", ip: "192.168.56.10" config.vm.provision "shell", inline:<<-SHELL # apt-get update # apt-get install -y vim curl wget sed -i 's/^#module\(load="imudp"\)/module(load="imudp")/' /etc/rsyslog.conf sed -i 's/^#input\(type="imudp" port="514"\)/input(type="imudp" port="514")/' /etc/rsyslog.conf systemctl restart syslog ss -lnu SHELL end config.vm.define 'cli' do |config| config.vm.box = "debian/bullseye64" config.vm.hostname = "cli" config.vm.network "private_network", ip: "192.168.56.11" config.vm.provision "shell", inline:<<-SHELL # apt-get update # apt-get install -y vim curl wget echo "*.* @192.168.56.10" >> /etc/rsyslog.conf systemctl restart syslog logger salut SHELL end end