Slide 1

Slide 1 text

Setup the

Slide 2

Slide 2 text

managing an army of laptops ...with puppet

Slide 3

Slide 3 text

hi, my name is will farrington

Slide 4

Slide 4 text

but you might know me as @wfarr  

Slide 5

Slide 5 text

i work at a “little-known startup” called github

Slide 6

Slide 6 text

i have “the best job in the world” at github

Slide 7

Slide 7 text

I work on System operations System operations internal apps the setup

Slide 8

Slide 8 text

love ops? come work with us puppet, erlang, ruby, shell, c and all the graphs you can shake a stick at

Slide 9

Slide 9 text

why

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

oh man, this new macbook pro is sweet! let me run a bunch of stuff by hand so I can get some work done in about 6 to 8 hours, maybe. - some folks

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

oh man, this new macbook pro is sweet! let me run a bunch of stuff by hand so I can get some work done in about 6 to 8 hours, maybe. - a bunch of crazy folks

Slide 14

Slide 14 text

i thought we cared about stuff

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

testing

Slide 17

Slide 17 text

repeatability

Slide 18

Slide 18 text

Automation

Slide 19

Slide 19 text

they matter for our software

Slide 20

Slide 20 text

they matter for our servers

Slide 21

Slide 21 text

but not for our laptops

Slide 22

Slide 22 text

ಠ_ಠ

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

what

Slide 27

Slide 27 text

Setup the

Slide 28

Slide 28 text

Setup the

Slide 29

Slide 29 text

boxen

Slide 30

Slide 30 text

a living, breathing software project that tests and automates every little bit of your machine with love

Slide 31

Slide 31 text

@jbarnette

Slide 32

Slide 32 text

chrome, colloquy, dropbox, elasticsearch, emacs, erlang, git, homebrew, hub, iterm2, java, macvim, memcache, mongodb, mysql, nginx, nodejs, nvm, 1passwd, personalization, postgresql, projects, python, qt, rbenv, rdio, redis, ruby, solr, sparrow, textmate, virtualbox, viscosity, wget, xcode, xquartz, zeromq, zsh, and more daily.

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

in

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

hours of frustration getting github.com and other projects even working locally

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

reality

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

Text

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

The Command Line Interface

Slide 46

Slide 46 text

» boxen --projects * github (as in .com)

Slide 47

Slide 47 text

github » script/bootstrap github » script/server github » open github.dev # SHIPPING!

Slide 48

Slide 48 text

» boxen slumlord # welcome to boomtown

Slide 49

Slide 49 text

» boxen --stealth # YOLO mode

Slide 50

Slide 50 text

» boxen --profile # Spock mode

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

boxen is a stdlib for puppet

Slide 53

Slide 53 text

 boxen is a stdlib for puppet

Slide 54

Slide 54 text

class github::projects::octostatus { require redis ... }

Slide 55

Slide 55 text

class github::projects::octostatus { ... $dir = "${github::config::srcdir}/ octostatus" ... }

Slide 56

Slide 56 text

class github::projects::octostatus { ... git::repo { $dir: source => 'github/octostatus' } ... }

Slide 57

Slide 57 text

class github::projects::octostatus { ... ruby::local { $dir: version => '1.9.3-p194', require => Git::Repo[$dir] } }

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

I like doing things my way

Slide 60

Slide 60 text

I like doing things my way

Slide 61

Slide 61 text

class github::people::hubot { include github::projects::all }

Slide 62

Slide 62 text

class github::people::keavy { include gitx include onepassword include sizeup include sparrow include textmate }

Slide 63

Slide 63 text

class github::people::yossef { package { 'Alfred': provider => 'appdmg', source => $alfred_dmg_url; } }

Slide 64

Slide 64 text

class github::people::yossef { package { 'Mailplane': provider => 'compressed_app', source => 'http://somewhere/app.zip' } }

Slide 65

Slide 65 text

class github::people::wfarr { git::config::global { 'alias.st': value => 'status'; 'alias.ci': value => 'commit'; } }

Slide 66

Slide 66 text

class github::people::wfarr { file { '/Users/wfarr/.gitignore': ensure => present, content => '.DS_STORE' } }

Slide 67

Slide 67 text

class github::people::wfarr { package { 'emacs': } git::repo { '/Users/wfarr/.emacs.d': source => 'wfarr/.emacs.d', submodules => true } }

Slide 68

Slide 68 text

class github::people::wfarr { package { 'emacs': } git::repo { '/Users/wfarr/.emacs.d': source => 'wfarr/.emacs.d', submodules => true } }

Slide 69

Slide 69 text

class github::people::wfarr { osx_defaults { 'troll protection': ensure => present, domain => 'com.apple.screensaver', key => 'askForPassword', value => 1, user => 'wfarr' } }

Slide 70

Slide 70 text

lessons

Slide 71

Slide 71 text

puppeteer supportocat

Slide 72

Slide 72 text

people will do crazy things

Slide 73

Slide 73 text

it is your job to fix it if it breaks

Slide 74

Slide 74 text

no matter what it is your job to fix it if it breaks

Slide 75

Slide 75 text

developers and designers are really good at breaking things

Slide 76

Slide 76 text

people will not report “minor” problems

Slide 77

Slide 77 text

people will barely report “major” problems

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

not having to report bugs makes people happy

Slide 80

Slide 80 text

getting regular bug reports makes us happy

Slide 81

Slide 81 text

users getting github notifications that the bug they hit and never even reported is already fixed

Slide 82

Slide 82 text

No content

Slide 83

Slide 83 text

reduce potential for bugs by vendoring everything

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

» du -sh /opt/boxen 4.1G /opt/boxen

Slide 87

Slide 87 text

there’s

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

=(

Slide 90

Slide 90 text

» env | grep BOXEN_ \ | wc -l 24

Slide 91

Slide 91 text

» env | grep \ BOXEN_REDIS_PORT BOXEN_REDIS_PORT=16379

Slide 92

Slide 92 text

» env | grep \ BOXEN_MYSQL_PORT BOXEN_MYSQL_PORT=13306

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

people will never remember to update regularly

Slide 95

Slide 95 text

tell people when they should update

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

=> Installing qt...

Slide 98

Slide 98 text

No content

Slide 99

Slide 99 text

No content

Slide 100

Slide 100 text

=> Fetching snapshot... => Installing qt...

Slide 101

Slide 101 text

=> Fetching snapshot... => Installing ruby-1.9.3...

Slide 102

Slide 102 text

=> Fetching snapshot... => Installing node-0.6.8...

Slide 103

Slide 103 text

puppet defined types are slow

Slide 104

Slide 104 text

start with puppet-defined types

Slide 105

Slide 105 text

then rewrite in ruby

Slide 106

Slide 106 text

we don't have the ability to mandate environments

Slide 107

Slide 107 text

we don't want to mandate environments

Slide 108

Slide 108 text

we have to provide something dramatically better than just doing it yourself

Slide 109

Slide 109 text

we have to provide something dramatically EASIER than just doing it yourself

Slide 110

Slide 110 text

No content

Slide 111

Slide 111 text

prim donn

Slide 112

Slide 112 text

boxen is not a tool for administration

Slide 113

Slide 113 text

boxen does not want to be a tool for administration

Slide 114

Slide 114 text

boxen is a tool for people who want to get stuff done, sanely

Slide 115

Slide 115 text

boxen has goals

Slide 116

Slide 116 text

user-extensible

Slide 117

Slide 117 text

framework

Slide 118

Slide 118 text

stable

Slide 119

Slide 119 text

easy to use

Slide 120

Slide 120 text

documented to kingdom come

Slide 121

Slide 121 text

not a maintenance nightmare

Slide 122

Slide 122 text

zomg GIMME

Slide 123

Slide 123 text

you don’t get it just yet =(

Slide 124

Slide 124 text

we are working hard to open source it

Slide 125

Slide 125 text

the goal was to OSS today

Slide 126

Slide 126 text

but some mes things come up

Slide 127

Slide 127 text

No content

Slide 128

Slide 128 text

No content

Slide 129

Slide 129 text

No content

Slide 130

Slide 130 text

No content

Slide 131

Slide 131 text

No content

Slide 132

Slide 132 text

No content

Slide 133

Slide 133 text

really

Slide 134

Slide 134 text

private “early access” for “friends and family” next next week

Slide 135

Slide 135 text

more testers == more fixes == everyone gets it sooner

Slide 136

Slide 136 text

how much is ge ng opened up exactly?

Slide 137

Slide 137 text

boxen-core boxen-web boxen-mac

Slide 138

Slide 138 text

TONS of providers, types, and more to contribute BACK to puppet proper

Slide 139

Slide 139 text

oh, and it runs on Puppet 3.0

Slide 140

Slide 140 text

boxen

Slide 141

Slide 141 text

questions

Slide 142

Slide 142 text

No content

Slide 143

Slide 143 text

thanks

Slide 144

Slide 144 text

speakerdeck.com/u/ wfarr/p/boxen

Slide 145

Slide 145 text

drinkup @ Zekes 8:30pm