Ansible isn't a new kid in town, but it's gaining more and more attention lately. The first commit has been made almost 2 year ago, and since then more than 500 contributers have been pushing almost 8600 commits.
So we couldn't ignore this radically simple IT automation platform (as I quote AnsibleWorks, the company behind Ansible), although I can't say they are lying.
We think that testing the Kunstmaan Sandbox with a demo website should also be radically simple, and thus we decided to make an Ansible playbook.
How to get started?
We've tested this setup on Max OS X 10.8.3 and you'll need a recent release of Vagrant and VirtualBox.
First of all, you will need to have Xcode installed. You can download it at https://developer.apple.com/xcode.
Afterwards you should install pip, using :
sudo easy_install pip
Then you can install Ansible with pip :
sudo pip install ansible --quiet
If you want to upgrade Ansible later, you can run:
sudo pip install ansible --upgrade
Clone the KunstmaanAnsibleSandbox repository
Once Ansible is installed, you can go ahead and clone the KunstmaanAnsibleSandbox.
git clone https://github.com/jverdeyen/KunstmaanAnsibleSandbox.git awesomeness && cd awesomeness
Run vagrant with provisioning
Now you should be all set to go, so start up a Vagrant box, making sure the provisioners will be run :
vagrant up --provision
Apply our Ansible Playbook
ansible-playbook kunstmaan/deploy.yml -i kunstmaan/hosts --private-key=$HOME/.vagrant.d/insecure_private_key
After a short while you should be able to see the Kunstmaan Bundles in action at :
Login credentials admin:admin
This is just a small part of what you can achieve with Ansible. For real world server infrastructures you will have to structure your playbooks, roles and hosts. But that's beyond the scope of this SandBox project.