Ansible Workflows

Ayush Goyal

Objective

To do a practical example of automation workflow

Problem Statement

Provision a redis cluster

Workflow Philosophy at Helpshift

  • Workflows define how to do a high level tasks
  • They have a simple/consistent interface
  • Idempotent
  • Repeatability
  • Extensible
  • Composable
  • Tuneable

Let's split Problem Statement

  • Provision Infrastructure
  • Setup redis on the provisioned infrastructure

Provision Infrastructure

  • Locally via Vagrant
  • Ec2 or Azure Cloud via Ansible

Setup redis

  • Install redis with proper configuration
  • Monitoring
  • High Availability
  • Backups
  • Handling workflows for adding new slaves to the cluster
  • Different configuration for different type of clusters

hs-redis

Running hs-redis

vagrant up
Made with Slides.com