Update Vagrantfile and hosts for SSH port configuration
This commit is contained in:
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -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
2
hosts
@@ -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
|
||||
|
Reference in New Issue
Block a user