A beginners guide to Vagrant and Puppet, part 3 – facts, conditionals and modules

Finishing this guide to Vagrant and Puppet, I would like to show some advanced Puppet resources. As I said before, Puppet is really powerful and extensive – I’m covering just the main concepts so you can have a good starting point for creating your Vagrant boxes. If you didn’t see the previous 2 posts, I strongly recommend you to read them. Here they are: Part 1 (Vagrant basics) and Part 2 (provisioning and Puppet) . Facts In the previous part of this guide, we saw a simple example of a Puppet class to install Apache. We saw that we can…
View Post

A beginners guide to Vagrant, part 2 – Provisioning and Puppet

In the first part of this begginer’s guide to Vagrant, we found out how to install Vagrant and get a really basic Ubuntu box up and running. But we need something more: we need to properly set up our development environment, in a fully automated way. It’s time to use provisioners to help us with these tasks. For a better understanding of how provisioners work, lets start using a very basic shell script as a provisioner. Provisioning with Shell The shell provisioner allows you to execute a shell script inside the vagrant box, as root. Lets use this really simple…
View Post

A beginners guide to Vagrant – getting your portable development environment, part 1

If you never heard about Vagrant, this is the right moment to get acquainted to it. Vagrant is getting very popular amongst open source projects, because it provides a portable and reproducible development environment using virtual machines. You will never be hostage of the “works on my machine” statement again; the environment is exactly the same for all the developers, regardless of the operational system running as the host machine (although everything can get messy with Windows). First of all, how it works? If a repository is “vagrant-ready”, you will just run a vagrant up in the repository root (after cloning it),…
View Post