The secret ingredient of listening to your fans, VEGA - Community Conference 2014
The Secret Ingredient of Automation
-
Upload
john-martin -
Category
Technology
-
view
1.532 -
download
2
description
Transcript of The Secret Ingredient of Automation
![Page 1: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/1.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/2.jpg)
- 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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/3.jpg)
#!/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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/5.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/6.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/7.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/8.jpg)
![Page 10: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/10.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/11.jpg)
P E O P L E
![Page 12: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/12.jpg)
- 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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/13.jpg)
- 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 15: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/15.jpg)
- 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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/16.jpg)
C A L M S
![Page 17: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/17.jpg)
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 19: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/19.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/20.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/21.jpg)
- 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](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/22.jpg)
![Page 23: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/23.jpg)
- 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 25: The Secret Ingredient of Automation](https://reader033.fdocuments.us/reader033/viewer/2022052623/559b80db1a28ab09768b476a/html5/thumbnails/25.jpg)
T H A N K Y O U