author Arthur Lutz <>
Tue, 13 May 2014 10:24:03 +0200
changeset 2 9ef3d246cb0b
parent 1 2d453588af07
child 3 946b73522adf
permissions -rw-r--r--
add hg clone command

Vagrant + Salt CubicWeb bootstrap environment

Install Vagrant :
Install VirtualBox :

Launch virtual machine with cubicweb demo provisionned in it ::

  hg clone
  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
   cd vagrant-debian-wheezy-64/
   vagrant add box wheezy64