From 6f9f9fb934638da254985d56a037f36167db626d Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Fri, 8 Nov 2019 09:18:18 +0100 Subject: [PATCH] Redirect localhost port 22 to Vagrant VM This is required to workaround os_fault limitation: it looks like it doesn't support other ports than 22 for orchestrating ansible playbooks. Change-Id: I223d635013bc54bfda11d789bc9db32f5f958861 --- Vagrantfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index f219a134d..e41dbb7ae 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -36,7 +36,6 @@ DEVSTACK_SRC_DIR = "#{DEVSTACK_DEST_DIR}/devstack" DEVSTACK_HOST_IP = "172.18.161.6" - # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what @@ -100,6 +99,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [".tox/", "tobiko.conf", ".tobiko"] + # OS faults doesn't support other ports for SSH connection used by ansible + config.vm.network "forwarded_port", guest: 22, host: 22 + # View the documentation for the provider you are using for more # information on available options.