The Secret Ingredient of Automation
-
Upload
john-martin -
Category
Technology
-
view
1.540 -
download
2
description
Transcript of 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 )
- 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.
#!/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/
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
A U T O M A T E
A N D G O B A C K T O S L E E P
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
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
Source: http://violasong.com/portfolio/Read Rands in Repose!
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 ?
P E O P L E
- 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
- 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
- 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
C A L M S
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
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 ”
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
- 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
- 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.
Source: http://violasong.com/portfolio/Read Rands in Repose!
T H A N K Y O U