Skip to content

Commit

Permalink
chore: add a vagrant config for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-fs committed Jul 16, 2024
1 parent ec892fa commit 8e9aafc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/volumes
.vagrant/
14 changes: 14 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e9aafc

Please sign in to comment.