passing variables from shell scripts to gnu make

Make is a really useful tool when you want to be able to write simple jobs. You don’t just need to use it for compiling source code. One thing you may wish to do is be able to pass variables to make commands. Lets take a look at a pretty simple Makefile that will delete all the indexes in Elastic Search. endpoint := localhost:9200 all: curl -XDELETE ${endpoint}/_all Running ‘make’ will spawn curl and delete the localhost:9200/_all
Read full post gblog_arrow_right

packer.io

In a previous post I wrote about how we can use Auto-Scaling Groups (ASG’s) to quickly adapt to user load. In this post I intend to explain a method to create custom Amazon Machine Image’s (AMI’s) using a project called packer.io what is packer? Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Packer is lightweight, runs on every major operating system and is able to create machine images for multiple platforms in parallel.
Read full post gblog_arrow_right

encryption for cloud storage

With all the recent talk about how NSA is reading archived email I thought it might be worthwhile to share how I secure my archived email with the wider audience. Being the data pack rat I’ve managed to keep a copy of my Inbox for the last 5 years. As you can imagine this gives me quite a large piece of data. I wanted to keep a copy of this online at all times but ensure that I was the only one able to view it contents.
Read full post gblog_arrow_right

how to use asg

The following explains how I utilize Auto Scaling Group’s (ASG’s) and puppet to automatically expand clusters during high load. asg Auto Scaling allows you to scale your Amazon EC2 capacity up or down automatically according to conditions you define. With Auto Scaling, you can ensure that the number of Amazon EC2 instances you’re using increases seamlessly during demand spikes to maintain performance, and decreases automatically during demand lulls to minimize costs.
Read full post gblog_arrow_right