This chapter doesn't have strict environmental restrictions; any OpenShift installations and development environment is supported—MiniShift, oc cluster up, standard Ansible-based production-ready deployment. It is up to you which version you use. However, this chapter is based on the oc cluster up method. The following Vagrantfile can be used to deploy development environment:
Vagrant.configure(2) do |config|
config.vm.define "openshift" do |conf|
conf.vm.box = "centos/7"
conf.vm.network "private_network", ip: "172.24.0.11"
conf.vm.hostname = 'openshift.example.com'
conf.vm.network "forwarded_port", guest: 80, host: 980
conf.vm.network "forwarded_port", guest: 443, host: 9443
conf.vm.network "forwarded_port", guest: 8080, host: 8080
conf...