Network configuration for vagrant boxes.
When you execute vagrant init commands it creates a Vagrantfile. It is ruby source code. Most of the configuration is commented by # you just need to uncomment and modify some values to configure the...
View ArticleMultimachine environment in vagrant.
We can configure and maintain many machine (box in execution) in a single Vagrantfile. Question: Why should we learn that, why not create one Vagrantfile for each machine? Answer: It makes...
View ArticleProvisioning a vagrant box with shell scripts
Software provisioning is a fancy term for installing and configuring softwares on a machine. Simplest way to do provisioning in a vagrant machine is by using shell script. Writing Shell scripts for...
View ArticleProvisioning a vagrant box with Puppet
Puppet is one of the widely used configuration management software. This post is not about Puppet but how to configure vagrant machine to utilize puppet. Usually Puppet is used in a master slave...
View ArticleCreate your own vagrant box
Vagrant supports lots of providers Virtualbox, Vmware, AWS, Docker. you can create boxes for all these providers. In this post We are going to create a box for virtualbox provider. We need to install...
View Article8+1 ways to take backup in postgresql
Following are some of the commands I use to backup and restore my postgres databases and tables. pg_dump is a nifty utility designed to output a series of SQL statements that describes the schema and...
View ArticleHow to install and configure Rabbitmq on Ubuntu?
Rabbitmq Recently I needed to install Rabbitmq on ubuntu. I tried the usual sudo apt-get install rabbitmq-server. It installs an old version of RMQ with older version of erlang (RMQ is written in...
View ArticleVagrant share for multiple websites in the same VM
Vagrant share vagrant share gives you a URL which will route to your vagrant vm. vagrant share will work only if our environment satisfy following requirements. Create a forwarded port pointing to your...
View ArticleSingleton Design pattern in Ruby
Singleton Design pattern make sure that you can create only one object of a class. This kind of design pattern is useful where you want different clients to share the same object, Logger is a good...
View ArticleMemento Design Pattern in Ruby
Memento design pattern is used when we want to keep track of the state of an object. It provides us the power to rollback the state of an object whenever we want. Memento is a very useful design...
View Article