Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Infrastructure Hack-Day

Kerim Satirli
September 30, 2016

Infrastructure Hack-Day

In this (internal) workshop, I led a session to familiarize a group of operations engineers with Red Hat's Ansible and HashiCorp Packer, Terraform, Consul, Vault, and Nomad.

The workshop was structured in a way that each step formed the basis of the next one. The final result was codified and securely deployed infrastructure on AWS, using all the aforementioned products.

Kerim Satirli

September 30, 2016
Tweet

More Decks by Kerim Satirli

Other Decks in Programming

Transcript

  1. Ansible Create playbook(s) to install common utilities and set sensible

    defaults. Bonus: create Ansible Roles for plays that can be useful for others
  2. Packer Build a CentOS 7.x base image that utilizes playbooks

    built for the previous step. Bonus: make the image testable
  3. Terraform Provision an EC2 Instance using the AMI built for

    the previous step. Bonus: create Terraform Modules for resources that can be useful for others
  4. Terraform x Ansible Use the Terraform Ansible Provisioner to run

    playbooks once an instance has been provisioned. Bonus: find a way to continuously run the playbook (on every terraform apply)
  5. Consul Ensure that instances are registered in Consul and become

    reachable via $instance.consul Bonus: Fill KV store automatically with metadata for an application
  6. Vault Create a Vault Server that utilizes a Consul backend

    and store database connection credentials inside of it.