Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
provision/keystore
templates
.gitignore
README.md
Vagrantfile
playbook-xml.yml

README.md

phoss SMP Vagrant integration

This Vagrant setup was originally provided by @jerouris - thanks a lot for this!

How to use it:

  • Download and install Vagrant from https://www.vagrantup.com/downloads.html
  • Download and install VirtualBox from https://www.virtualbox.org/wiki/Downloads
  • Have the SMP keystore JKS at hand and copy it into the provision/keystore folder
  • Copy provision/keystore/keystore_vars.template.yml to provision/keystore/keystore_vars.yml
  • Modify the created file provision/keystore/keystore_vars.yml with your keystore configuration and the unique SMP-ID
  • Run vagrant up and wait for the initial setup
  • Once it is finished, open http://192.168.20.10:8080 in your browser
  • The default login is:
    • User: admin@helger.com
    • Password: password

Using a proxy server

If a proxy server is needed to download all the relevant information, the following steps are necessary:

  • Install the Vagrant plugin using vagrant plugin install vagrant-proxyconf
  • Modify Vagrantfile and add the following entries:
  config.proxy.http     = "http://1.2.3.4:8080"
  config.proxy.https    = "http://1.2.3.4:8080"
  config.proxy.no_proxy = "localhost,127.0.0.1"
  • Modify playbook-xml.yml:
    • Search the line containing mvn clean install and add the following parameters afterwards: -Dhttp.proxyHost=1.2.3.4 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts="localhost|127.0.0.1" -Dhttps.proxyHost=1.2.3.4 -Dhttps.proxyPort=8080 (note: there is no -Dhttps.nonProxyHosts!)

Connect to the virtual machine

There is not direct login with username and password! You need to open an SSH connection to the machine using vagrant ssh and than call sudo passwd ubuntu inside the SSH session. This allows you to define a password for the ubuntu user which you can than use to login to the box.

Note: Windows users need an ssh executable in their PATH. Get one at https://github.com/PowerShell/Win32-OpenSSH/releases/

Note: because the ubuntu/xenial64 box is used as the basis, the default shell user is ubuntu and NOT vagrant!

Note: the virtual machine has an English keyboard layout! Use sudo dpkg-reconfigure keyboard-configuration to change it.

Note: when using Virtual Box 6.x on Windows, make sure to disable Hyper V and reboot Windows

You can’t perform that action at this time.