Vagrant

442 views
399 views

Published on

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
442
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Vagrant

  1. 1. Tuesday, 25 June, 13
  2. 2. Tuesday, 25 June, 13
  3. 3. Tuesday, 25 June, 13
  4. 4. Tuesday, 25 June, 13
  5. 5. Tuesday, 25 June, 13
  6. 6. +Tuesday, 25 June, 13
  7. 7. +Tuesday, 25 June, 13
  8. 8. +Tuesday, 25 June, 13
  9. 9. +Tuesday, 25 June, 13
  10. 10. +Tuesday, 25 June, 13
  11. 11. +Tuesday, 25 June, 13
  12. 12. +Tuesday, 25 June, 13
  13. 13. vagrant initvagrant upvagrant haltvagrant statusvagrant suspendvagrant resumevagrant reloadvagrant provisionvagrant boxvagrant sshvagrant destroyTuesday, 25 June, 13
  14. 14. Vagrant::Config.run do |config|config.vm.box = “local-boxname”# config.vm.box_url = "http://domain.com/path/to/above.box"...config.vm.provision :puppet do |puppet|puppet.manifests_path = "manifests"puppet.manifest_file = "pyvm.pp"endendTuesday, 25 June, 13
  15. 15. Vagrant::Config.run do |config|# config.vm.box = “local-boxname”config.vm.box_url = "http://domain.com/path/to/above.box"...config.vm.provision :puppet do |puppet|puppet.manifests_path = "manifests"puppet.manifest_file = "manifest.pp"endendTuesday, 25 June, 13
  16. 16. Vagrant::Config.run do |config|config.vm.box = “local-boxname”# config.vm.box_url = "http://domain.com/path/to/above.box"...config.vm.provision :puppet do |puppet|puppet.manifests_path = "manifests"puppet.manifest_file = "manifest.pp"endendTuesday, 25 June, 13
  17. 17. Tuesday, 25 June, 13
  18. 18. facterpuppetmasterpuppetdmanifest filesTuesday, 25 June, 13
  19. 19. package { "nginx":ensure => installed,}service { "nginx":enable => true,}# An erb that currently has no logicfile { "/etc/nginx/nginx.conf":content => template("nginx/etc/nginx/nginx.conf.erb"),owner => nginx,group => nginx,require => Package["nginx"],}Tuesday, 25 June, 13
  20. 20. package { "nginx":ensure => installed,}service { "nginx":enable => true,}# An erb that currently has no logicfile { "/etc/nginx/nginx.conf":content => template("nginx/etc/nginx/nginx.conf.erb"),owner => nginx,group => nginx,require => Package["nginx"],}Tuesday, 25 June, 13
  21. 21. package { "nginx":ensure => installed,}service { "nginx":enable => true,}# An erb that currently has no logicfile { "/etc/nginx/nginx.conf":content => template("nginx/etc/nginx/nginx.conf.erb"),owner => nginx,group => nginx,require => Package["nginx"],}Tuesday, 25 June, 13
  22. 22. package { "nginx":ensure => installed,}service { "nginx":enable => true,}# An erb that currently has no logicfile { "/etc/nginx/nginx.conf":content => template("nginx/etc/nginx/nginx.conf.erb"),owner => nginx,group => nginx,require => Package["nginx"],}Tuesday, 25 June, 13
  23. 23. class nginx {package { "nginx":ensure => installed,}service { "nginx":enable => true,}...}Tuesday, 25 June, 13
  24. 24. include nginxinclude mysqlinclude mongodbinclude nodejsinclude ...Tuesday, 25 June, 13
  25. 25. Tuesday, 25 June, 13
  26. 26. http://www.vagrantup.comhttp://www.virtualbox.orghttp://www.vmware.comhttp://www.puppetlabs.comhttp://www.opscode.comhttp://www.saltstack.comhttp://www.gitscm.comTuesday, 25 June, 13
  27. 27. http://docs.puppetlabs.com/http://www.puppetcookbook.com/Tuesday, 25 June, 13
  28. 28. carlocostantini.cagithub.com/fifteen3@fifteen3Tuesday, 25 June, 13

×