Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Vagrant and-ansible

579 views

Published on

Vagrant and ansible presentation.
Talk held at Symfony User Group Croatia.

Published in: Software
  • Be the first to comment

Vagrant and-ansible

  1. 1. VAGRANT AND ANSIBLEVAGRANT AND ANSIBLE KRUNO KNEGO
  2. 2. DEVELOPMENT BEFORE VAGRANTDEVELOPMENT BEFORE VAGRANT
  3. 3. IT WORKS ON MY MACHINE!IT WORKS ON MY MACHINE!
  4. 4. VAGRANT - NO MORE EXCUSESVAGRANT - NO MORE EXCUSES Create one box Provision it Distribute it to your colleagues Profit
  5. 5. VAGRANT PROSVAGRANT PROS Keep your host computer clean Easy to switch stacks (e.g. LAMP <--> LEMP ) PHP Box, NodeJS Box, Ruby Box etc.
  6. 6. VAGRANT CONSVAGRANT CONS NFS ( network file system ) needed if you want it to be fast; Available only on UNIX machines It takes time if you destroy and provision your box
  7. 7. VAGRANT INSTALLATIONVAGRANT INSTALLATION VirtualBox or VMware http://www.vagrantup.com/downloads.html mkdir ~/Vagrant; cd ~/Vagrant; vagrant init; (for mac&linux) Configure Vagrantfile vagrant up
  8. 8. VAGRANTEEVAGRANTEE https://github.com/vagrantee/sandbox- symfony easy to install provisioning already set up for you LAMP stack vagrant ssh ( php app/console)
  9. 9. VAGRANT SHAREVAGRANT SHARE https://vagrantcloud.com/ ; create account vagrant login (vagrant cloud usr & pass) vagrant share
  10. 10. ANSIBLEANSIBLE IT automation tool easy to use uses YAML ( Yet Another Markup Language)
  11. 11. PLAYBOOKSPLAYBOOKS Ansible configuration file YAML format https://github.com/ansible/ansible-examples
  12. 12. ANSIBLE VS CHEF VS PUPPET VS SALTANSIBLE VS CHEF VS PUPPET VS SALT Puppet imperative paradigm Others declarative paradigm
  13. 13. ANSIBLE AS PROVSIONERANSIBLE AS PROVSIONER
  14. 14. file, copy, apt ansible modules
  15. 15. file, copy, apt ansible modules
  16. 16. {{ item }} == loops
  17. 17. ANSIBLE NOTIFYANSIBLE NOTIFY https://github.com/pesterhazy/vagrant-lamp-ansible
  18. 18. QUESTIONS?QUESTIONS?

×