Update Vagrantfile and hosts for SSH port configuration

This commit is contained in:
martin.cholewa
2025-07-08 18:04:37 +02:00
parent 314ee67a3b
commit c0cce1cb8e
2 changed files with 4 additions and 1 deletions

3
Vagrantfile vendored
View File

@@ -3,6 +3,9 @@ Vagrant.configure("2") do |config|
kube01.vm.box = "bento/ubuntu-22.04"
kube01.vm.hostname = "kube01"
# Forward host port 2030 to guest port 22 for SSH access
kube01.vm.network "forwarded_port", guest: 22, host: 2030, id: "ssh"
kube01.vm.provider "vmware_fusion" do |v|
v.gui = false
v.memory = 2048

2
hosts
View File

@@ -1,2 +1,2 @@
[kube]
kube01 ansible_host=127.0.0.1 ansible_port=2222 ansible_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/kube01/vmware_fusion/private_key
kube01 ansible_host=127.0.0.1 ansible_port=2030 ansible_user=vagrant ansible_ssh_private_key_file=.vagrant/machines/kube01/vmware_fusion/private_key