Slide 1

Slide 1 text

Devops For Developers @ BENELUX 2016

Slide 2

Slide 2 text

About Me

Slide 3

Slide 3 text

About Me Michael

Slide 4

Slide 4 text

About Me @mheap

Slide 5

Slide 5 text

About Me DataSift

Slide 6

Slide 6 text

What is devops?

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No, but seriously

Slide 11

Slide 11 text

Today C A M
 S

Slide 12

Slide 12 text

Today Culture A M S

Slide 13

Slide 13 text

Today Culture Automation M S

Slide 14

Slide 14 text

Today Culture Automation Measurement S

Slide 15

Slide 15 text

Today Culture Automation Measurement Sharing

Slide 16

Slide 16 text

Who are you?

Slide 17

Slide 17 text

All about CULTURE

Slide 18

Slide 18 text

It takes investment

Slide 19

Slide 19 text

https://www.youtube.com/watch?v=SL9FEDaXutE Jeremy Quinton PHPUK

Slide 20

Slide 20 text

Automation

Slide 21

Slide 21 text

Shell Scripts

Slide 22

Slide 22 text

imp -vvv -S -t 1000 -d 8912 /path/to/$(date %s)

Slide 23

Slide 23 text

import_latest_stock_update.sh

Slide 24

Slide 24 text

Build Servers

Slide 25

Slide 25 text

Not just for tests

Slide 26

Slide 26 text

Packaging

Slide 27

Slide 27 text

QA

Slide 28

Slide 28 text

PHPCS

Slide 29

Slide 29 text

PHPMD

Slide 30

Slide 30 text

Automation Servers

Slide 31

Slide 31 text

Configuration Management

Slide 32

Slide 32 text

Manual Installation

Slide 33

Slide 33 text

Snowflake Servers

Slide 34

Slide 34 text

Documentation

Slide 35

Slide 35 text

Living Documentation

Slide 36

Slide 36 text

Possible Tools

Slide 37

Slide 37 text

Testing

Slide 38

Slide 38 text

Automation = Testing Required

Slide 39

Slide 39 text

Critical Paths, Black Boxes

Slide 40

Slide 40 text

ServerSpec

Slide 41

Slide 41 text

Deployment

Slide 42

Slide 42 text

Tests

Slide 43

Slide 43 text

Auto Deploy

Slide 44

Slide 44 text

Smoke Tests

Slide 45

Slide 45 text

Continuous Deployment

Slide 46

Slide 46 text

Continuous Delivery

Slide 47

Slide 47 text

Deployment

Slide 48

Slide 48 text

Automation

Slide 49

Slide 49 text

Measurement

Slide 50

Slide 50 text

Visibility

Slide 51

Slide 51 text

Graphite

Slide 52

Slide 52 text

Outliers

Slide 53

Slide 53 text

Fix Things

Slide 54

Slide 54 text

Measurement

Slide 55

Slide 55 text

Sharing

Slide 56

Slide 56 text

What works? What doesn’t?

Slide 57

Slide 57 text

War stories

Slide 58

Slide 58 text

Help each other

Slide 59

Slide 59 text

Sharing

Slide 60

Slide 60 text

Culture

Slide 61

Slide 61 text

Share in the successes

Slide 62

Slide 62 text

Share in the successes … and the failures

Slide 63

Slide 63 text

Not a blame game

Slide 64

Slide 64 text

Imagine this

Slide 65

Slide 65 text

We’re half way!

Slide 66

Slide 66 text

We’re half way!

Slide 67

Slide 67 text

The real world

Slide 68

Slide 68 text

Full Stack

Slide 69

Slide 69 text

Collaboration

Slide 70

Slide 70 text

Devs own projects

Slide 71

Slide 71 text

Ops own infrastructure

Slide 72

Slide 72 text

Collaboration

Slide 73

Slide 73 text

Pragmatism

Slide 74

Slide 74 text

Being Devops

Slide 75

Slide 75 text

SSH

Slide 76

Slide 76 text

SSH Keys SSH Forwarding No password authentication

Slide 77

Slide 77 text

ssh-keygen -t rsa id_rsa id_rsa.pub ssh -i id_rsa [email protected]

Slide 78

Slide 78 text

Configuration Management

Slide 79

Slide 79 text

Puppet Chef Ansible

Slide 80

Slide 80 text

package { 'apache2': ensure => 'installed', } package ‘apache2’ - apt: name=apache2 state=installed

Slide 81

Slide 81 text

file { ‘foo.conf’: path => ‘/etc/foo.conf’, ensure => file, source => “puppet:///modules/ foo/foo-example.conf”, }

Slide 82

Slide 82 text

cookbook_file ‘/etc/foo.conf’ do source ‘foo-example.conf’ end - copy: src=foo-example.conf dest=/ etc/foo.conf

Slide 83

Slide 83 text

Paths

Slide 84

Slide 84 text

/home

Slide 85

Slide 85 text

/home User Files

Slide 86

Slide 86 text

/etc

Slide 87

Slide 87 text

/etc Configuration

Slide 88

Slide 88 text

/usr/bin

Slide 89

Slide 89 text

/usr/local/bin

Slide 90

Slide 90 text

/usr/local/bin Binary Programs

Slide 91

Slide 91 text

/var/log

Slide 92

Slide 92 text

/var/log Yep, logs!

Slide 93

Slide 93 text

/opt

Slide 94

Slide 94 text

/opt Everything!

Slide 95

Slide 95 text

/opt/php7/etc/ /opt/php7/var/ /opt/php7/usr/bin

Slide 96

Slide 96 text

Permissions

Slide 97

Slide 97 text

-rwxrwxrwx

Slide 98

Slide 98 text

0777

Slide 99

Slide 99 text

Read = 4 Write = 2 Execute = 1

Slide 100

Slide 100 text

UGW User, Group World

Slide 101

Slide 101 text

0777 Open to the world

Slide 102

Slide 102 text

0750 Writable by owner Executable by group

Slide 103

Slide 103 text

0640 Writable by owner Readable by group

Slide 104

Slide 104 text

0644 Writable by owner Readable by world

Slide 105

Slide 105 text

Binaries

Slide 106

Slide 106 text

Getting Started

Slide 107

Slide 107 text

Vagrant Amazon AWS LowEndBox

Slide 108

Slide 108 text

Deploy Something

Slide 109

Slide 109 text

Avoid

Slide 110

Slide 110 text

Run as root chmod 0777

Slide 111

Slide 111 text

What Else?

Slide 112

Slide 112 text

Build Systems Jenkins Travis Bamboo GoCD

Slide 113

Slide 113 text

User Management Users Groups

Slide 114

Slide 114 text

Libraries Compiled in Shared Objects (.so files)

Slide 115

Slide 115 text

Web VHosts SSL (Certs + Termination) nginx/Apache PHP-FPM

Slide 116

Slide 116 text

Databases Backup strategies InnoDB settings. Indices

Slide 117

Slide 117 text

Even More Varnish
 Networking Monitoring/Alerting

Slide 118

Slide 118 text

Sky = Limit

Slide 119

Slide 119 text

Summary

Slide 120

Slide 120 text

Culture

Slide 121

Slide 121 text

Automation

Slide 122

Slide 122 text

Measurement

Slide 123

Slide 123 text

Sharing

Slide 124

Slide 124 text

Any Questions? https://joind.in/talk/bc8bc @mheap