@verosk věroš kaplan - linuxdays€¦ · hadoop developer's desktop without vagrant mutt...

18
Vagrant - nerozbíjejte servery Věroš Kaplan @verosk http://inuits.eu/ http://veroskaplan.cz/

Upload: others

Post on 28-May-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrant - nerozbíjejte servery

Věroš Kaplan@verosk

http://inuits.eu/

http://veroskaplan.cz/

Page 2: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrant for sysadminsVagrant for developers

Věroš Kaplan@verosk

http://inuits.eu/

http://veroskaplan.cz/

Page 3: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

About me

Fixing (and breaking) servers

● manually

● smart○ puppet apply -t

○ ansible-playbook

Page 4: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Workflow

sad server happy server

my work

Page 5: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

very sad serververy sad server

Workflow (real)

sad server happy server

very sad server

Page 6: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

I Don’t Always Test My Code. But When I Do I Do It In Production

Page 7: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Workflow with testing

sad server happy server

happy testing server

Page 8: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

We need testing playground!

Page 9: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Solution?

Page 10: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

by

Page 11: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrantfile

Page 12: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrant workflow

● vagrant init

● vagrant up

● vagrant status

● vagrant ssh

● vagrant destroy

https://github.com/VerosK/vagrant-examples

Page 13: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrantfile anatomy

Page 14: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Multi-host environment

● vagrant up psql-01

● vagrant up django-01

Page 15: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Vagrant for developers

Věroš Kaplan@verosk

http://inuits.eu/

http://veroskaplan.cz/

Page 16: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Image stolen from @roidelapluie

Page 17: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

Image stolen from @roidelapluie

Page 18: @verosk Věroš Kaplan - LinuxDays€¦ · hadoop Developer's desktop without Vagrant mutt scripts httpd hadoop nginx vim redis memcached bind solr # vi: set ft=ruby agrant . configure

EOF