README
author Arthur Lutz <arthur.lutz@logilab.fr>
Tue, 13 May 2014 10:17:59 +0200
changeset 1 2d453588af07
parent 0 ab720d946d30
child 2 9ef3d246cb0b
permissions -rw-r--r--
rename main folder

Vagrant + Salt CubicWeb bootstrap environment
---------------------------------------------

Install Vagrant : http://www.vagrantup.com/
Install VirtualBox : https://www.virtualbox.org/

Launch virtual machine with cubicweb demo provisionned in it ::

  cd vagrant-salt-cubicweb/
  vagrant up

Open http://localhost:8080 in your browser to see a running blog 
demo application.

login: admin
password: admin

What happens on vagrant up
--------------------------

* vagrant imports a wheezy 64 bit template into VirtualBox
* vagrant starts the virtual machine
* vagrant configures ssh access and network redirections
* vagrant launches salt to provision the machine
* included salt states are applied
* the salt states add Logilab's debian repositories, installs
  cubicweb and a postgresql server, and initiates a demo application


Do more
-------

To test more applications or use a dev environment ::

  vagrant ssh

To run salt highstate in the machine ::

  sudo salt-call state.highstate

Make your own wheezy box (to avoid using the user-contributed VM referenced in VagrantFile) : 

   git clone https://github.com/dotzero/vagrant-debian-wheezy-64.git
   cd vagrant-debian-wheezy-64/
   cat README.md
   ./build.sh
   vagrant add box wheezy64 debian-wheezy-64.box