Packer Blue-Green Deployments

Let’s review a deployment scenario that utilizes Packer, Terraform, Ansible, and AWS Autoscaling. The code is available at https://github.com/sdarwin/packer-blue-green-deployment-example Part 1 – builder.sh To begin with, all the parts of the puzzle will be tied together by a fairly simple bash script, here called builder.sh. The logic is as follows: 1. build a new AMI with Packer. (In other words, run “packer”) 2. deploy the […]

Read Me Leave comment

Ansible Galaxy List

Of course, the best place to find reusable Ansible Roles is Ansible Galaxy. However often people will search Google anyway, and then they might miss out on Galaxy. With that in mind, here are some Ansible Roles which I’ve written, and recommend to you. Ansible Nagios – https://github.com/sdarwin/Ansible-Nagios Ansible Munin – https://github.com/sdarwin/Ansible-Munin Ansible WordPress – https://github.com/sdarwin/Ansible-Wordpress Ansible VNC – https://github.com/sdarwin/Ansible-VNC Ansible Bootstrap – https://github.com/sdarwin/Ansible-Bootstrap Ansible […]

Read Me Leave comment

Spinnaker, Ansible and Packer

The main focus of the article will be specifically the Spinnaker Bake cycle. This is the intersection of Spinnaker, Ansible and Packer. For a bit of advice about installation, which is actually a prerequisite, refer to Spinnaker Installation, Deployments, Questions & Answers Packer and Ansible On the Spinnaker server, the packer templates are located in /opt/rosco/config/packer/ . However, there is a slightly roundabout way of […]

Read Me 5 Comments

Ansible Role Variables as Defaults

[jump directly to the code] Here is a trick for creating Ansible role vars (defined in role/vars/main.yml) so they act as role defaults (defined in role/defaults/main.yml) What does this mean, and why would it be interesting? An Ansible Role is a reusable and redistributable unit of code. Ansible Galaxy encourages code sharing via Roles. But the author of an Ansible Role cannot predict how the […]

Read Me 4 Comments

Chef and Ansible Comparison

Table mapping the concepts between Chef and Ansible:

Read Me Leave comment

Ansible Wrapper Roles

An Ansible role can include other roles as dependencies. This leads to the possibility of following the “wrapper” pattern, where you take a community role from Ansible Galaxy, which is being kept up-to-date with bug fixes and features, and then instead of forking the role, you merely include it within your own role, and adjust a small number of variables to customize it for your environment. As […]

Read Me Leave comment