GithubHelp home page GithubHelp logo

robertotorresaniunitn / forward-2020-codify-your-environment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rfitzhugh/forward-2020-codify-your-environment

0.0 0.0 0.0 43 KB

Code snippets from "Codify Your Environment" session at FDS20

Home Page: https://forward.rubrik.com

License: MIT License

HCL 100.00%

forward-2020-codify-your-environment's Introduction

Using Ansible and Terraform to Codify Your Environment

Imagine a world in which in your infrastructure is provisioned and managed by a few lines of code. We’ll walk through both configuration management and infrastructure as code, how to apply them to your data center, and give live demos using Rubrik’s fully robust set of APIs.

Join Matt Elliott and Rebecca Fitzhugh as they walk through calling APIs to create workflows that instantiate, protect, and recover workloads on-prem and in the cloud.

Code and slides in repo. This is from a session at Rubrik Forward (Digital Summit) 2020.

Demo 1

Prerequisites

The following pre-requisites are required for this example:

  • Terraform 0.12 or later
  • AWS S3
  • Rubrik CDM

Create an S3 Bucket

This demonstration walks through the Terraform architecture and how to provision an object store bucket using AWS S3.

Code can be found in the /terraform/01-create-s3-bucket directory.

Configure S3 as an Archive for Rubrik

This demonstration shows how to leverage Terraform to configure the previously created S3 bucket as a cloud archive for Rubrik.

Code can be found in the /terraform/02-configure-rubrik-archive-s3 directory.

Demo 2

Prerequisites

The following pre-requisites are required for this example:

  • Ansible 2.8 or later
  • Git and GitHub
  • Slack
  • Rubrik CDM

This demo leverages a CI workflow, found at /.github/workflows/run-playbooks.yaml

Create a new SLA Domain

This demonstration uses one of the Rubrik Modules for Ansible to create a new SLA Domain. This SLA Domain will utilize the S3 bucket and corresponding archive location created in Demo 1.

The Ansible playbook for this step is located at /ansible/create_sla.yaml

Clone an existing template to a new VM

This demonstration uses the VMware vmware_guest module to clone an existing VM template to a new Virtual Machine.

The Ansible playbook for this step is located at /ansible/clone_template.yaml

Protect the new VM

This demonstration uses the rubrik_refresh_vcenter and rubrik_assign_sla modules to assign an SLA Domain to the newly cloned VM. The rubrik_refresh_vcenter module refreshes metadata from vCenter to ensure that the CDM cluster is aware of the new VM. The rubrik_assign_sla module then assigns the SLA Domain to the VM.

The Ansible Playbook for this step are located at /ansible/refresh_vcenter.yaml and /ansible/protect_vm.yaml

forward-2020-codify-your-environment's People

Contributors

rfitzhugh avatar shamsway avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.