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
This commit is contained in:
Federico Ressi 2019-11-08 09:18:18 +01:00
parent ca862481e0
commit 6f9f9fb934
1 changed files with 3 additions and 1 deletions

4
Vagrantfile vendored
View File

@ -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.