Change directory to /hdp_2.4.2-vagrant, the folder that includes Vagrantfile and create a /data folder:
This /data folder will be needed for guest VMs to share with the host.
Vagrant (via Vagrantfile) is configured to use Centos 6.7 as the base box and includes the pre-requisites for installing HDP. 4 VMs will be created: 1 Ambari Server (ambari1), 1 Hadoop master (master1) and 2 slaves (slave1, slave2).
Add at the same path with files downloaded from the repoosity, your id_rsa and id_rsa.pub keys (seehttps://wiki.centos.org/HowTos/Network/SecuringSSH section 7 for instructions on CentOS). You could perform these steps on ambari1 VM and copy these two files to your /vagrant_data folder which shares data between guest and host. Only after you copy those two files, start the other three VMs:
vagrant up master1
vagrant up slave1
vagrant up slave2
Install Ambari Server
yum install ambari-server
Setup Ambari Server
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options: