This repository was archived by the owner on Jan 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Running with Vagrant
tinaColemanNextCentury edited this page Aug 13, 2014
·
11 revisions
Vagrant is a tool used to quickly create fully configured virtual machines based on a predefined definition file.
- Vagrant - Vagrant can be downloaded from vagrantup.com
- VirtualBox OR an OpenStack server
- After installing Vagrant, if using OpenStack to run the virtual machine, run the command
vagrant plugin install vagrant-openstack-plugin
Executing the command vagrant up virtualbox will create a virtual machine on VirtualBox.
This machine will be configured with:
- Java 7
- MongoDB
- Tomcat 7 - Tomcat can be accessed at [http://localhost:4567]
- Git
- Neon - Refer to the Demo Widget Guide for details on accessing the demo. Note The port will be 4567 rather than 8080 as mentioned in the Demo guide.
To run a virtual machine on an OpenStack cloud instance is more advanced than running on VirtualBox as some configuration must be performed before creating a virtual machine.
- Configure environment variables
- Execute
export OS_USERNAME=YOUR_OPENSTACK_USERNAMEwhere YOUR_OPENSTACK_USERNAME is your OpenStack username. - Execute
export OS_PASSWORD=YOUR_OPENSTACK_PASSWORDwhere YOUR_OPENSTACK_USERNAME is your OpenStack password. - Execute
export OS_AUTH_URL=OPENSTACK_URLwhere OPENSTACK_URL is the OpenStack authentication URL - Edit the VagrantFile
- Set osConfig.ssh.private_key_path to the path to the private pem key file used for SSH into the VM
- Set os.flavor to the flavor size of your desired VM
- Set os.image to a CentOS 6.5 VM image on your Openstack instance.
- Set os.keypair_name to the name of the key pair corresponding to the osConfig.ssh.private_key_path file specified
- Set os.ssh_username to the username to be used for ssh into the virtual machine.
Once the configuration is performed, execute the command vagrant up openstack --provider=openstack to create a virtual machine on the OpenStack instance.
##Puppet## Vagrant will execute several commands, including the execution of a puppet configuration. For more information about puppet, refer to the Configuring with Puppet page.