The Secret Ingredient of Automation

25
THE SECRET INGREDIENT OF AUTOMATION JOHN MARTIN (@TEKBUDDHA)

description

With the continuing rise of "infrastructure as code", we are automating services to operate at large scale. While there are clear benefits to business and commerce for doing so, I believe there is a much larger reason for continuing to push for systems automation. This talk is about that secret - nay, the necessary! - ingredient for making systems automation successful.

Transcript of The Secret Ingredient of Automation

Page 1: The Secret Ingredient of Automation

T H E S E C R E T I N G R E D I E N T

O F A U T O M A T I O N

J O H N M A R T I N ( @ T E K B U D D H A )

Page 2: The Secret Ingredient of Automation

- S Y S A D M I N A D A G E

Go away or I will replace you with a very

small shell script.

Page 3: The Secret Ingredient of Automation

#!/bin/bash

#Backup script for www and mysql.

DATE=`date +%-Y%-m%-d`

backup_path="/path/to/where/iwant/mybackup/stored/"

backup_source="/path/of/myfolder/iwant/to/backup/"

user="db_username"

password="db_password"

host="db_host"

db_name="db_name"

# The function to actually do the backup.

function dobackup {

echo "Starting backup for" $user

echo "Backing up" $backup_source

tar -cvzPf $backup_path$DATE-$user.tar.gz $backup_source

echo "Backing up MySQL database.."

mysqldump --user=$user --password=$password --host=$host

$db_name > $backup_path/$db_name-$date.sql

gzip $backup_path/$db_name-$date.sql

echo "Backup done"

Source: http://bash.cyberciti.biz/backup/backup-mysql-database-server-2/

Page 4: The Secret Ingredient of Automation

backup_model :my_db do

description "Back up my database"

definition <<-DEF

split_into_chunks_of 4000

database MySQL do |db|

db.name = 'mydb'

db.username = 'myuser'

db.password = ‘#{node['mydb']['password']}'

end

compress_with Gzip

store_with S3 do |s3|

s3.access_key_id = '#{node['aws']['access_key_id']}'

s3.secret_key = '#{node['aws']['secret_access_key']}'

s3.bucket = 'mybucket'

end

DEF

schedule({

Source: https://github.com/cramerdev/backup-cookbook

Page 5: The Secret Ingredient of Automation

A U T O M A T E

A N D G O B A C K T O S L E E P

Page 6: The Secret Ingredient of Automation

A U T O M A T E

A N D L A U N C H I T Y O U R S E L F

Page 7: The Secret Ingredient of Automation

A U T O M A T E

T O S C A L E Y O U R B U S I N E S S

Page 8: The Secret Ingredient of Automation
Page 9: The Secret Ingredient of Automation

Source: http://violasong.com/portfolio/Read Rands in Repose!

Page 10: The Secret Ingredient of Automation

W H A T I S

T H E S E C R E T N E C E S S A R Y

I N G R E D I E N T ?

Page 11: The Secret Ingredient of Automation

P E O P L E

Page 12: The Secret Ingredient of Automation

- M E L V I N C O N W A Y

Organizations which design systems ... are

constrained to produce designs which are

copies of the communication structures of

these organizations.

Source: http://bit.ly/1ujIDLK

Page 13: The Secret Ingredient of Automation

- B R I A N T R O U T W I N E

Automation, done wrong, mechanizes humans.

Automation, done wrong, misdirects.

Automation, done wrong, entraps.

Source: http://bit.ly/1umOm46

Page 14: The Secret Ingredient of Automation

Source: http://bit.ly/1uDadiv

E M P A T H Y

Page 15: The Secret Ingredient of Automation

- J E F F S U S S N A

The true essence of DevOps is empathy.

Empathy allows software makers and

operators to help each other deliver the best

possible functionality+operability on behalf of

their customers.

Source: http://bit.ly/19p4Yy1

Page 16: The Secret Ingredient of Automation

C A L M S

Page 17: The Secret Ingredient of Automation

C U L T U R E

A U T O M A T I O N

( L E A N )

M E A S U R E

S H A R I N G

Page 18: The Secret Ingredient of Automation

Source: http://bit.ly/1soOQ8y

“ C U L T I V A T I O N O F T H E S O U L ”

Page 19: The Secret Ingredient of Automation

Source: http://bit.ly/1soOQ8y

“ A T T I T U D E S A N D B E H A V I O R S O F A

P A R T I C U L A R S O C I A L G R O U P ”

Page 20: The Secret Ingredient of Automation

Source: http://bit.ly/1soOQ8y

T H E W A Y W E T H I N K , B E H A V E ,

I N T E R A C T

Page 21: The Secret Ingredient of Automation

- B R I A N T R O U T W I N E

Automation, done right, relieves tedium.

Automation, done right, reduces errors.

Automation, done right, liberates.

Source: http://bit.ly/1umOm46

Page 22: The Secret Ingredient of Automation
Page 23: The Secret Ingredient of Automation

- A D A M J A C O B

The goal of automating a system is to

enhance safety, contentment, knowledge,

and freedom of both the authors and the

users of the system.

Page 24: The Secret Ingredient of Automation

Source: http://violasong.com/portfolio/Read Rands in Repose!

Page 25: The Secret Ingredient of Automation

T H A N K Y O U