From 8e9aafc737366f326f5f727938501dc0d6bbfa8c Mon Sep 17 00:00:00 2001 From: Bruno FS Ciconelle Date: Tue, 16 Jul 2024 18:24:49 -0300 Subject: [PATCH] chore: add a vagrant config for testing --- .gitignore | 1 + Vagrantfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index af1a956..5eb9956 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /volumes +.vagrant/ diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..f2e74d1 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,14 @@ +Vagrant.configure("2") do |config| + # unnoficial RHEL images + (8..9).each do |n| + config.vm.define "rhel%d" % n do |vmconfig| + vmconfig.vm.box = "generic/rhel%d" % n + end + end + # allow ssh'ing with password authentication (username and password are "vagrant") + config.vm.provision "shell", inline: <<-EOF + sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config + # fallback to service for systems that don't use systemd + systemctl restart sshd.service + EOF +end