You are on page 1of 22

1

DevOps
F O R H A C K E R S
B Y R A L P H M A Y
2

WHOAMI
3

WHAT TO
EXEPCT

Labs

Keep it simple

Watch Me

Hands On
Agenda
4

Terraform – Hour 1
Overview of Terraform – Lab - Provision Ubuntu VM in Digital Ocean
using Terraform

Ansible – Hour 2
Overview of Ansible – Lab - Configure OS utilizing Ansible

Docker – Hour 3
Overview of Docker – Lab - Build a Kali docker container & run with
docker compose.

Mythic C2 - Hour 4
Overview of Mythic C2 and combining Ansible and Terraform – Lab –
Deploy Terraform and install Mythic C2 all from Ansible
Infrastructure as 5

Code
6

Infrastructure as Code
Benefits
SPEED

CONSISTANCY

DOCUMENTATION
7

TERRAFORM
Why 8

Terraform
• Leader in IOC
• Free / Open Source
• Active Project
• All the Clouds
• Client Only
• Feature complete Ver 1.0
9

Terraform
Overview
Open-source orchestration tool

Infrastructure as Code

GO-Lang based

HashiCorp configuration language HCL

HashiCorp

State file – Declarative

Great for API’s


10

Terraform Diagram
11

Terraform Providers
12

Documentation
(DEMO)
Example variables.tf 13
Example provider.tf 14
Example main.tf 15
16

Terraform Deployment Lifecycle

INI PLA APPL DESTRO


T N Y Y
Initializes the Create an execution Makes the changes delete all the old
working directory plan to reach a in the infrastructure infrastructure
which consists of desired state of the as defined in the resources
all the infrastructure. plan
configuration files
17

INIT
18

PLAN
19

APPLY
20

Lab Overview
21

Digital Ocean
(DEMO)
22

Lab 1

GOALS

Deploy an Ubuntu virtual machine to DigitalOcean.


The deployment will include the following
• Add SSH key to DigitalOcean
• Add tags to the Droplet
• Utilize a SSH provisioner
• Add a Droplet Firewall rule
• Output the Droplet IP address

https://workshop.hackerops.dev

You might also like