Tải bản đầy đủ

1783982462 {c12012f7} configuration management with chef solo ur rahman 2014 07 15



ConfigurationManagementwithChefSolo


TableofContents
ConfigurationManagementwithChef-Solo
Credits
AbouttheAuthor
AbouttheReviewers
www.PacktPub.com
Supportfiles,eBooks,discountoffers,andmore
Whysubscribe?
FreeaccessforPacktaccountholders
Preface
Whatthisbookcovers
Whatyouneedforthisbook
Whothisbookisfor
Conventions
Readerfeedback
Customersupport

Downloadingtheexamplecode
Errata
Piracy
Questions
1.IntroductiontoChefandChef-Solo
GettingstartedwithChef
UnderstandingChef-Solo
Terminologies
Listofterminologies
Node
Workstation
Cookbooks
Recipes
Resources


Roles
Attributes
Templates
Databags
Differentusecases
PHPWordPress
Python/Djangoapplication
AnoverviewofChef
Summary
2.SettingUpanEnvironmentforChef-Solo
InstallationonLinuxandUbuntu
InstallingChefasaRubygem
InstallingChefasapackagemanager
UsingtheOmnibusinstaller
PrerequisitesofChef-Solo
Cookbooks
Thefolderstructure
Attributes
Files
Recipes
Templates
Downloadingrecipes
Chef-Soloconfiguration
Executionofrecipes

Summary
3.SettingUpaDevelopmentEnvironment
Introducingvirtualmachine
Systemvirtualmachines
Processvirtualmachines
ExecutingrecipeswithVagrant
Provision


CreatingaHelloWorldrecipe
Summary
4.DevelopingCookbooks
ExploringKnife
Developingrecipesandcookbooks
Berkshelf
TheinstallationofBerkshelf
ThecreationofaBerksfile
Understandingrecipes
Resources
Attributes
Metadata
Summary
5.MoreaboutCookbooksandRecipes
Usingfiles
Exploringtemplates
Databags
Roles
Restartingservicesandserverhandling
Summary
6.Chef-SoloandDocker
Docker
InstallingDocker
TheworkingofDocker
Dockerfiles
RecommendedwaystouseChef-Solo
Chefserver
WebUI
Erchef
Messagequeues
Summary


Index



ConfigurationManagementwithChefSolo



ConfigurationManagementwithChefSolo
Copyright©2014PacktPublishing
Allrightsreserved.Nopartofthisbookmaybereproduced,storedinaretrievalsystem,
ortransmittedinanyformorbyanymeans,withoutthepriorwrittenpermissionofthe
publisher,exceptinthecaseofbriefquotationsembeddedincriticalarticlesorreviews.
Everyefforthasbeenmadeinthepreparationofthisbooktoensuretheaccuracyofthe
informationpresented.However,theinformationcontainedinthisbookissoldwithout
warranty,eitherexpressorimplied.Neithertheauthor,norPacktPublishing,andits
dealersanddistributorswillbeheldliableforanydamagescausedorallegedtobecaused
directlyorindirectlybythisbook.
PacktPublishinghasendeavoredtoprovidetrademarkinformationaboutallofthe
companiesandproductsmentionedinthisbookbytheappropriateuseofcapitals.
However,PacktPublishingcannotguaranteetheaccuracyofthisinformation.
Firstpublished:June2014
Productionreference:1190614
PublishedbyPacktPublishingLtd.
LiveryPlace
35LiveryStreet
BirminghamB32PB,UK.
ISBN978-1-78398-246-2
www.packtpub.com
CoverimagebyBéchirCharfi()



Credits
Author
NaveedurRahman
Reviewers
AnirudhBhatnagar
StuartEllis
JorgeMoratilla
CommissioningEditor
EdwardGordon
AcquisitionEditor
SubhoGupta
ContentDevelopmentEditor
SriramNeelakantan
TechnicalEditors
VenuManthena
ShrutiRawool
CopyEditors
JanbalDharmaraj
KarunaNarayanan
ProjectCoordinator
AboliAmbardekar
Proofreaders
MariaGould
PaulHindle
Indexer
RekhaNair
Graphics
DishaHaria
ProductionCoordinator
ShantanuZagade
CoverWork


ShantanuZagade



AbouttheAuthor
NaveedurRahmanisaself-taughtprogrammerandanavidtraveler.Whenheisnot
experimentingwiththelatestinprogramminganddeployment,heisoutcampingand
watchingcricket.
HisadventuresinprogrammingbeganataveryyoungagewhenhegotintroducedtoGWBASIC.Now,hehasexperienceworkingforoneofthebiggesttechnamesintheMiddle
East.
HavingworkedatthelargesttechnologycompanyintheMiddleEast,Naveedhashelped
teamscreateanddeployapplicationswritteninvariouslanguagesusingconfiguration
managementtools.
Iwouldliketothankmyfamilyforsupportingmethroughouttheprocessofwriting.Also,
thehelpofPacktPublishingstaffhasbeenincredible.Iwouldliketothankmyproject
coordinatorandcontentdevelopmenteditorwhosupportedmeinwritingandfinalizing
thecontent.Also,thetechnicalreviewersprovidedmewithaclearguidelinetomakethis
bookmoreeffective.Moreover,theirvaluablecritiquesallowedmetorefinemywork.



AbouttheReviewers
AnirudhBhatnagarisatechnologyconsultantwithanextensiveexperienceinAgile
productdevelopmentandconsulting.HestartedhiscareerworkingasaJavadeveloper
withproduct-basedcompaniessuchasAdobeSystems,India,wheremostofhis
experiencewasinJava,J2EE,Spring,Hibernate,XML,WebServices,REST,CMS,SSO,
ESB,andLiferay.Currently,heisworkingasaPrincipalConsultantinXebia,Indiawith
specializationinContinuousDeliverymethodology,andworkingondevelopingaPaaS
forserviceorchestrationusingMuleESB,ActiveMQ,Elasticsearch,Jenkins,Maven,
Chef,andAWS.Hehasbeencontributingtothesoftwarecommunitythroughhisblogs,
articles,projects,meetups,andconferences.Recently,hehasstartedaDevOpscommunity
inNewDelhiandhasspokenatDevOpsDaysIndia2013.
StuartEllisworksforaRubyonRailsandmobilesoftwaredevelopmentcompany,where
hehasmanyhats.Inhiscurrentandpreviousroles,hehasdevelopedsoftwarewith.NET
andRuby,writtenSQLinasurprisingnumberofdialects,manageddifferentcombinations
ofWindowsandLinux,andstudiedhistory.
JorgeMoratillahasaBachelor’sdegreeinComputerScienceandhasbeenworkingfor
Internetcompaniessince1998.Hehasbeenworkingasacontractorforcompaniessuchas
SunMicrosystemsandOracle,workingasacertifiedinstructorandfieldengineerfor
severalyears.Hehasalargebackgroundworkingwithtechnologiesandproductssuchas
Linux,Solaris,LDAP,andCheckPoint.Recently,hehasbeenworkingindevelopment
companies,mainlyasasystemadministrator,andperformingseveraltasksrelatedwith
Agilemanagement,testing,andContinuousDeployment.Asacoordinatorofthetechnical
groupMadridDevOps,hepromotestheadoptionofacultureofcontinuousimprovement
intheenterprise.Youcanmeethimattalksandhangoutsheorganizesinthecommunity.
IwouldliketopersonallythankmywifeNuriaandsonEduardoforbeingso
understandingandsupportivewhileIwasreviewingthisbook.Also,Iwouldliketothank
mydearmomMilagrosanddadToñi,whoputinalltheefforttogivemeaneducation.
Finally,Iwouldthankalsoallthosewhohavecontributedtomypersonalandprofessional
developmentthroughtheyears.



www.PacktPub.com


Supportfiles,eBooks,discountoffers,and
more
Youmightwanttovisitwww.PacktPub.comforsupportfilesanddownloadsrelatedto
yourbook.
DidyouknowthatPacktofferseBookversionsofeverybookpublished,withPDFand
ePubfilesavailable?YoucanupgradetotheeBookversionatwww.PacktPub.comandas
aprintbookcustomer,youareentitledtoadiscountontheeBookcopy.Getintouchwith
usatformoredetails.
Atwww.PacktPub.com,youcanalsoreadacollectionoffreetechnicalarticles,signup
forarangeoffreenewslettersandreceiveexclusivediscountsandoffersonPacktbooks
andeBooks.

http://PacktLib.PacktPub.com
DoyouneedinstantsolutionstoyourITquestions?PacktLibisPackt’sonlinedigital
booklibrary.Here,youcanaccess,readandsearchacrossPackt’sentirelibraryofbooks.


Whysubscribe?
FullysearchableacrosseverybookpublishedbyPackt
Copyandpaste,printandbookmarkcontent
Ondemandandaccessibleviawebbrowser


FreeaccessforPacktaccountholders
IfyouhaveanaccountwithPacktatwww.PacktPub.com,youcanusethistoaccess
PacktLibtodayandviewnineentirelyfreebooks.Simplyuseyourlogincredentialsfor
immediateaccess.



Preface
Chef-Soloisanopensourceversionofchef-clientoriginallydevelopedbyChefSoftware,
Inc.Itisacompleteframeworktoautomateinfrastructureoperationsforbuildingservers
orapplicationsfromscratchoraddingnewconfigurationstoexistingsystems.These
serversaremanagedbycodewritteninRubyanditalsoprovidesthefacilitytotestand
reproduce.
Thebookwilltakethereaderthroughtheworkflowofmanagingoneormoreservers.
Also,itincludesmanysamplerecipestohelpyougetstarted.
Throughouttheprocess,wewillhavealookatthedifferentinteractionpointsandyouwill
learnhowChef-Solohelpstominimizeyoureffortstobuildandefficientlymanage
differentmachines.Youwillbeabletohandleoneormoreserversfromthecodewritten
inRuby.Thisbookwillalsohelpyoutounderstandtheneedforaconfiguration
managementtoolandanin-depthexplanationofChef-Solo.
Thisbookwillprovideclearinstructionstothereaderonhowtoconvertyour
infrastructureintocode.Also,itexplainsdifferentvirtualmachinesandcertain
deploymentautomationtoolsincludingVagrantandDocker.


Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay

×