20
VAGRANT AND ANSIBLE VAGRANT AND ANSIBLE KRUNO KNEGO

Vagrant and-ansible

Embed Size (px)

Citation preview

VAGRANT AND ANSIBLEVAGRANT AND ANSIBLE

KRUNO KNEGO

DEVELOPMENT BEFORE VAGRANTDEVELOPMENT BEFORE VAGRANT

IT WORKS ON MY MACHINE!IT WORKS ON MY MACHINE!

VAGRANT - NO MORE EXCUSESVAGRANT - NO MORE EXCUSES

Create one boxProvision itDistribute it to your colleaguesProfit

VAGRANT PROSVAGRANT PROS

Keep your host computer cleanEasy to switch stacks (e.g. LAMP <--> LEMP )PHP Box, NodeJS Box, Ruby Box etc.

VAGRANT CONSVAGRANT CONSNFS ( network file system ) needed if you want itto be fast; Available only on UNIX machinesIt takes time if you destroy and provision yourbox

VAGRANT INSTALLATIONVAGRANT INSTALLATION

VirtualBox or VMwarehttp://www.vagrantup.com/downloads.htmlmkdir ~/Vagrant; cd ~/Vagrant; vagrant init;(for mac&linux)Configure Vagrantfilevagrant up

VAGRANTEEVAGRANTEEhttps://github.com/vagrantee/sandbox-symfonyeasy to installprovisioning already set up for youLAMP stackvagrant ssh ( php app/console)

VAGRANT SHAREVAGRANT SHARE

https://vagrantcloud.com/ ; createaccountvagrant login (vagrant cloud usr & pass)vagrant share

ANSIBLEANSIBLE

IT automation tooleasy to useuses YAML ( Yet Another Markup Language)

PLAYBOOKSPLAYBOOKSAnsible configuration fileYAML formathttps://github.com/ansible/ansible-examples

ANSIBLE VS CHEF VS PUPPET VS SALTANSIBLE VS CHEF VS PUPPET VS SALT

Puppet imperative paradigmOthers declarative paradigm

ANSIBLE AS PROVSIONERANSIBLE AS PROVSIONER

file, copy, apt ansible modules

file, copy, apt ansible modules

{{ item }} == loops

ANSIBLE NOTIFYANSIBLE NOTIFY

https://github.com/pesterhazy/vagrant-lamp-ansible

QUESTIONS?QUESTIONS?