This Vagrant file will deploy a centos 6 operating system, assign a private ip and also enable ssh access.
examples integrating ansible with vagrant is also shown in the Vagrant file
Requirements
vagrant installation
ssh config for root access
ansible installation (optional)
Host appserver User root Hostname 192.168.10.2
comment out the lines below to integrate your ansible plays and rename "test.yml" to your play.
# appserver.vm.provision "ansible" do |ansible| # ansible.playbook = "#{Dir.home}//ansible/playbooks/test.yml" # end
Usage:
vagrant up ssh appserver