You are on page 1of 40
Chapter 02: Installing VirtualBox and Vagrant BI Command Prompt [~] vagrant -v Vagrant 2.0.4 Chapter 03: Command Line-Interface - Vagrant Commands T=] vagrant box —help Usage: vagrant box [] Available subcommands: ‘add list outdated prune repackage update To] vagrant box add —hetp Usage: vagrant box add [options] ~nane, url, or path> Option: ~cy clean Clean any tenporary doxntead files “fy Fores Overwrite an existing box if it exists “insecure De net velidate SSL certificates ~eacert FILE CA certificate for SSL download ~-capath DIR CA certificate directory fer SSL dovnload ~cert FILE A client S5L cert, if needed ~Aacation-trusted Trust ‘Location’ heacer fron HTTP redirects and use the sane credentials fer subsequent url: az fer the initial one ~-provider PROVIDER Provider the box shoule satiety ~box-version VERSION Constrain version of the acdee box The box descrioter con be the nene of e box on HashiCorp's Vagrant Cloud or a UR, of a local «box file, er a local «Jaen file containing the catalog metadata. The options below only apply if you're edding © box file directly and not using a Vagrant server or 2 box structured like ‘user/tox! checksum CHECKSUM Checksum for the box ~-checksum-type TYPE Checksum type (neS, shot, sho256: “name 90% None of the box —help Print this help [2] Chapter 04: Discovering Vagrant Boxes - Vagrant Cloud [-] vagrant box add https://app.vagrantup .con/Laravel/poxes/homestead => box: Loading metadata for box 'https://app. vagrantup..com/Laravel /boxes/homes ao ee CC aL eC at Ce ete ts Mate Ck ea Ren eee econ it) aad Beasts ed Eo Lana cee eo eae CN CTO aos Pea eraser otted Pecuereed (oom) poco Caws, 0) ee Cee) Leekasoeacaie eI Aura emE ITS) Leer eeea Lee RRs o ae Seat 8) [rnnhen-enneie outdo ER RD) Peeiecaritcs ites stot Rh) eet oC acon Would remove laravel/homestead virtualbox 2.0.0 ee ee een et Rede ee Rese uence Pe ey ae eet cs ae ae cl a a [3] Laravel a: Official arava! local development box. laravelshomestead-7 Official Larave! local development bos for PHP 7.0, antoniofrignani/laravel-homestead-settler- 2 rmff/laravel-homestead-32bit i) Ca) a ER] sexy Downloads 12825698 140395 10148 Q 2Odays ago Released ‘over 2 year ago ‘simon years ago Released ‘over 2 years ago [4] laravel/ homestead vagrant box How to use this box with Vagrant: Vagrant. configure("2") do |contig| config. vm.box = “Laravel/homestead' end V6.0.0 currently released version This version was created 20 days ago. bhttps//github.com/laravel/settler/releases/tag/v6.0.0 3 providers for this version. hyperv Host rant Cloud (1.26 GB vmware_desktop Hosted 1 Cloud (138.68) virtualbox Hoste \t 8 aravel/ homestead vag ‘ant box How to use this box with Vagrant: Vagrantfile |New vagrant init taravel/nomestead vagrant up [5] [laravelbox] vagrant init Laravel/homestead Roe eee Ce ee Leet ee Rees toon Roe Creal Oe RO ee ee Re ee ee cea] Oe ee Cee ee ecole ern eee eee ee ed Mercy Vagrant.configure("2") do |config| Dis A Lae nC La [6] oa Cee eR eG cc ee eet en eet ee coe eo] Pre tae eee oe ead eee eee) Ne ee RC Coo Cee ee er se Ra Mte een] —> default: adding box “laravel/nonestead" (v6.0.8) for provider: virtualbox default: Downloading: https: //vagrantcloud. con/Laravel/boxes/honestead/versi Cee aaae ena’ default: Progress: 4% (Rate: 5228k/s, Estimated tine remaining: 0:05:36) an ene ee ee Ce ek ome aad ee cE Cee Progress: 40a] vagrant ssh Dee Rea aOR eee a) oe ee nd PHP 7.2.4-1+ubuntul8.04.1+deb.sury.org+1 (cli) (built: Apr 5 2018 @8:55:11) ( N TS) Ce ORC OUR ec) Pen RE ee a CeCe ma ered ees er eis ae kd el vagrant status sass Contd poweroff (virtualbox) The VM is powered off. To restart the VM, simply run ‘vagrant up” oa laravel/homestead (virtualbox, 6.0.0) Pees ECG mes ERD) eG em CR [71 Create a new Vagrant box Name | abraunton # 7 alestes ne name of your Vagrant box's used in tools, notifications, routing. ad ths UL Short and simple bes Wisty Private Moking a Short description This. es bow! abraunton / alextest vagrant box New Box Version Version 001 Theversion shouldbe compatbe with RubyGeme versioning Description Theis the fist eververs [8] v0.0.1 This version was created less than a minute ago. This is the first ever version There are no providers for this version. New Box Provider Provider v Vagrant will need to know how to use this provider File Hosting © Upload to Vagrant Cloud External URL res Se ae kee See ee eee Reo eZ oo“ aed xtest.box Replace Provider File ot cause V download the Image automatically Upload Fle Choate fie alextest.box Status Uploading 18.56/1531,00M8 (19) [9] My Vagrant Boxes abraunton/alextest @ No released versions This box has no released versions. Itwill not be available from vagrant box add, nor will it show up in search results. v0.0.1 unrele abraunton/alextest vagrant box Release Box Version A This version is unreleased. Upon releasing, it will be available to users from Vagrant. Successfully released [10] ax Se mG Lous cee eee Ru) c eee tat eee et fee Rr ree Dee ees Ree extest ee ee ee crema Deen eer eee aerate ee a tare wan Eto vagrant ssh De ee ECR eR CSU Cn Poe aCe aD) [11] Chapter 05: Configuring Vagrant Using a Vagrantfile errr rey eee keen [vogrontfitetest) vagrant int Ca eee eet Lee ORCS eRe ee eno ete ce kee ee econ te) eee eo erat teat ee et ec one need [rence trees ery masts eames) There is a syntax error in the following ce aacad DT ee ue ‘Alsers/alexbraunton/vagrantfiletest/Vagrantfile:24: syntax error, unexpected tID Gc es hoe) Pee Redcat) eee eT) There is a syntax error in the following Vagrantfile. The syntax error ressage is reproduced below for convenience: Le ee tC ee ek acco ok) peeoereeie pentose een eres ir [12] Rea Neri nfig.vm.box = “base Pee cue a cea ee cae Rema) Peco Reagent Cee Ceo eT Se ee ee CR ae Coe Mme cm ee T EL ee ee Ce ae Sum Ce acre Ce Me ett as eR art Ome c Lace ca) Peer et ean ec ea oan ora Oana LCM eter ecco eu ad Ce Mi nee Me CL) eer Re a eer Cee ea ee Rees te Moe tee mole Reet ee re Bree [13] Chapter 06: Networking in Vagrant aoe Cera Tiay config.vm.box = "ub SO ats Ca vagrant: up Cen ea cc ela ae eas Ra tice © &® (Fy tecanose x EI This site can't be reached localhost refused to connect. * Did you mean httpy/localhost-8080.com/? ‘+ Search Google for localhost 8080 ERR. CONNECTION. REFUSED [14] De Kaka eee s Pra ee a are Dee aco tneas coe ene eee nary Cad SR cee ee eee ee cee oe nec ae) Dee cet cee CC Sec ee Ce aed Se eerie aoe eae eae eee tied Pee 7 an ea a eR ec een VRercni) Sete C Tar CeCe ae eer L PCR SC acct mete eee Peete) Poe rece aCe Cece ne cea Poe tae ue teevan turd eae [15] ee ete eee kes : Checking if box ‘ubuntu/xenialé4" is up to date. Ce Cee sae Cece eens Preparing network interfaces based on configuration. .. ected Sa Roos © © /E Wetcome to ain! x € © EQ [O lecatnost-208 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org, Commercial support is available at nginx.com. Thank you for using nginx. See ee aCe ee Se ia Re ata ec => default: Preparing network interfaces based on configuration. pe tae aed Ce nea ered [16] ear) Ce Se ae net addr:10.0.2.15 Bcast:10.0.2 Se iets Tee reasons RX packets:982 errors:0 dropped:0 overruns:0 frane:0 ‘1K packets:573 errors:@ dropped:@ overruns:@ carrier:0 collisions:0 txqueuelen: 1000 RX bytes:386087 (386.0 KB) TX bytes:73933 (73.9 KB) DoT eee aed pare isa ee eM sete et ee ae ere) ee reg ec ee caer ats Pecuetere Teccetumminte a crest RX packets:2 errors:0 dropped:0 overruns: frane:0 1% packets:10 errors:0 dropped:@ overruns:0 carrier:@ collisions:0 txqueueten:1000 RX bytes:1180 (1.1 KB) TX bytes:1382 (1.3 KB) © © © /B) Welcome to nginx! x € > SO [0 v228:183 Welcome to nginx! {IF you see this page, the nginx web server is successfully installed and working. Further configuration is required, For online documentation and support please refer to nginx.org Commercial support is available at nginx.com. Thank you for using nginx. [17] < Welcome to nginx! x cala D 10.10:10:10 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.or9. Commercial support is available at nginx.com. Thank you for using nginx. ery Ce Ue ae ce cee) enpes8 inet addr:10.0.2.15 Beast:10.0.2.255 Mask:255.255, Te me secre agen eens TER a ecommerce RX packets:1213 errors: dropped:@ overruns:@ frane:@ 1K packets:745 errors:0 dropped:@ overruns:@ carrier:0 collistons:0 taquevelen: 1000 RX bytes:420984 (420.9 KB) TX bytes:91167 (91.1 KB) Dee ae Te Pete eS Dee te ORCC R OR Ran tra fie ree od Prot a tte Tesco meet resets! RX packets:20 errors:@ dropped:@ overruns:@ frame:@ ‘TK packets:28 errors:@ dropped:@ overruns: carrier:@ collisions:@ txquevelen:1000 RX bytes:1524 (1.5 KB) TX bytes:1848 (1.8 KB) Cee ee eee en ee ens De eee eet ed cr geal CeO at neces 1) end: Wi-Fi (AirPort) eres ee) et 5) bridgeo ee aor ae) default: being used to comect to the internet. default: mich interface should the network bridge to? fl [18] => default: Clearing ary previously set forwarded ports. Ne i ee ee eed See ee eee ee Pee Rec ae emcee ac [19] Chapter 07: Multi-Machine @ ee (5 10010 x € > © @ 100010 Machine: web1 @ 08 /p w0010 x € > SO Or00:0 |Machine: web2 © 08 (5 w00n x <-¢0 Machine: web1 D 1000.11 ea erat Se ea ee este eeu ee re ae eee ee ee ned => web2: Destroying VM and associated drives... Sr te RR Reese ad => 1b1: Destroying WM and associated drives... [20] gee Cee cman Cie /nginx/nginx. eed Deets cuneate ae cea TS @ © 2 (1 praintor) € System Unux ubstuserl Server APL FPM/Fest0Ol Virtual Directory Support ‘disabled Contigurtion File (hp. Path eich? or @8®@ /F 10.0050 ;estpnp € GS OQ |@ 10.0.050)test php This text is from MySQL [21] Chapter 08: Exploring Vagrant Plugins and Syncing Files eas 162) Re Rede a ene Peri egies Un ee can mer oe Re Cn ee eee Ta Cee ete Re RCs cc ee Cag fee cee Pe RCO io ea Re ore ume en ae onsen unc me rd pO nt ee te ee eae! eee tg ios mC et eC ane ce Re Re ee nee eer TR Ce ees eee ears pee een ont ee a i a sy ee ee deh) vagrant-hostsupdater 414,701 36 Vagrant to upd enc na unc nm est pee CC ee ae Fetching: vagrant-hostsupdater-1.1.1.168.gem (100%) eas 162) Re Rede a ene [22] => default: [vagrant-hostsupdater] Checking for host entries => default: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts > SS ee CCC eM a LE ar BC Rr ee er => default: [vagrant-hostsupdater] This operation requires administrative acces s. You may skip it by manually adding equivalent entries to the hosts file. ed P Led # PRR Rea eRe tao Ok ss Ra ee ae ra cA el aren PE ae eras A ees => default: Setting hostname # Cea Ea eC eC Ree ees med SO ne ss Ree eee a creak ee od RE ee et cf ieeateed Be ee CE er eee ee) [23] eae ke mac Stra eee aoe eRe stat OE Seu ed eC eG Res } Pat en Pee ee eed default: Running provisioner: ansible_Local DM ee eC See nnn tenn nnn SSS Senet tn eters t tres StS esse esse nnn Oe eee es Receenenneeeennneen nnn iees ecere et neeen sine cenecnannsy CS Cee eee mcm rs Cn Riccio Ce Coes] Oa ey ence en nen eet annneCneece nee ceneanannny DWV a cel erent ere eer or re tet ccirettter terre cere rerio rigs cect 5 Cr ee Ma) [27] 1D} Welcome to nginx x € > S Q O 10.10.1010 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com Thank you for using nginx. eC Cr Rees RG iL) oe Cos cr eee CS Te) Pee ease ee ee estate eae) according to the Ansible version installed (2.6.3) Alternatively, the compatibility mode can be specified in your Vagrantfile: https: //ww. vagrantup.. con/docs/provisioning/ansible_conmon. html #compatibility_mode default: Running ansible-playbook. . . De errr nnn rset tnt ett t etre ttt etter titers entre Oe cnr Cees Renee nererernetenntee coceceeee eretcraceneeerectonens ee nha Se ee tee eee ee meee cece CeCe] Oe ee ays ree Crem eles] PINE een crrre ert rntatettcettentcarteterderitratcorrectrartrtectttarrads ceed Aec} changed=1 unreachable=@ failed. [28] [3 Welcome to nginx! x © 10.10.1010 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx. [29] Chapter 11: Chef - Using Chef to Provision a Vagrant Box Cookbooks Tools [30] nginx & cookbook ‘nginx’, "=> 8.2.5" 89009" ¢ar0% i= = nginx. {enw 6a r= S cookbook ‘nginx’, ‘=> 8.1.5 nginx Cookbook 260 G0e6¢HrONe Installs nginx trom package OA source code and sets up configuration handing siilar to Debian's Apache scripts. Download Cookbook Requirements [31] X Mac OS X/macOS Mac OS X/macOS 10.13 License Information Architecture: x86_64 Ea ee W install Chef Development Kit a Welcome to the Chet Development Kit installer | Introduction ‘This installer wil hep you install Chet Development Kit version 3.2.30. ‘You wil be guided through the steps necessary to install this software. Continue rs Tee aa Pieced [32] cee Installing Chef (latest ees ee ee ceria Running chef-solo. © © © 7B Welcome to nginx x <¢ © OQ © 1010.10.10 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx. [33] Chapter 12: Docker - Using Docker with Vagrant Repositories (1 169) All memcached 1ak official STARS 10M+ > putts | Seas Official ‘Automated Downloads Stars ‘OFFICIAL REPOSITORY memcached ty ‘Short Descrition Free & opensource, high perfomance, cstibuted memory object caching aytem. Full Descrton Supported tags and respective Dockerfile links + 1.5.18, 2.5, 2, latest (debizn/Dockers) + 1,5.10-alpine 2.5-slpine , t-alpine alpine lalbio/Doctrtio) Docker Pal Command [34] Ree cm a eee eed eee nr Ri nC ee Zr tas Peete ee neat Cee een ee aed Cee oe Td Brn ere eee eee ego ee ery See ae en aes ee Cem REPOSITORY ig pet era gin 7 Carriers ed ee veut aericeee perry tec Geena reer ey [35] Se ee cE ee ee eect a eat Se ee es cc ee Se ere eu ad [5 Welcome to nginx! x ) locathost:8081 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required For online documentation and support please refer to ngin) Commercial support is available at nginx.com. Thank you for using nginx, [36] Chapter 13: Puppet - Using Puppet to Provision a Vagrant Box er ee ec ae re Se eee ae eC Reh ec ce SO Main/Package[nginx]/ensure: ensure changed "pu Pea aes i ee RU Rao Ly Welcome to nginx! x OQ Onnnn Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx. [37] nce ne ay Cer eee eee ccs eC) reac on es Dea ed ea eae Cty 4 eek ase a => puppetmaster: Running provisioner: shell Sea ee ad puppetmaster: 10.10.10.11 master. example. com Deane eee ee een ae ag eee Teer eee nner Cao) peeeeerere cas) ee eter en ee ated ares ee eee ee ee hay ervice { nginx: require —> Package[nginx], ensure -> running, enable => true } errors es ee eu Caching certificate for ca Sete ss eee Cer Ra Eee enc ee eect ca eee ett Info: Certificate Request fingerprint (SHA2S6): DD:3A:33:81:70:61:SE:38:87:62:73:0C:83:23:E4: AF: 7B:0C:14:24:A4:83:80:4C:9€:A2:08:04:80:85:8C:05 Cee ac eer ere Cmte or eee eee cada Peer) eee eaten cece Dea Ree eeu CEE tc) Peace a i ee el ae Dee ee Gaeta et a Cee ee oe ned pete eet te epee ne Notice: Finished catalog run in 7.14 seconds [38] © © © /B Weicome to nginx x €> OQ © 1010.10.12 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to noi Commercial support is available at nginx.com. rg. Thank you for using nginx. freee [39] Chapter 14: Salt - Using Salt to Provision a Vagrant Box Ci eeR Need Bee ea eae Poet ens Checking if solt-ninion is installed Deo Cente Cnc etry) Poteet eae eas Tae Creme Rte) Piece Reus Se eee crue Ro ae Cotten te ec aac neg Gres ene eect violcome to nginx x € © € & [O 10101020 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working, Further configuration is required. For online documentation and support please refer to nginx.or9, Commercial support is available at nainx.com. Thank you for using nginx. [40]

You might also like