舉報

會員
Ansible Playbook Essentials
最新章節:
Index
Ansiblecombinesconfigurationmanagement,orchestration,andparallelcommandexecutionintoasingletool.Itsbatteries-includedapproachandbuilt-inmodulelibrarymakesiteasytointegrateitwithcloudplatforms,databases,andnotificationserviceswithoutrequiringadditionalplugins.PlaybooksinAnsibledefinethepoliciesyoursystemsundermanagementenforce.Theyfacilitateeffectiveconfigurationmanagementratherthanrunningadhocscriptstodeploycomplexapplications.Thisbookwillshowyouhowtowriteablueprintofyourinfrastructureencompassingmulti-tierapplicationsusingAnsible'splaybooks.Beginningwiththebasicconceptssuchasplays,tasks,handlers,inventory,andtheYAMLsyntaxthatAnsibleuses,youwillseehowtoorganizeyourcodeintoamodularstructure.Buildingonthis,youwillmastertechniquestocreatedata-drivenplaybookswithvariables,templates,logicalconstructs,andencrypteddata.Thisbookwillalsotakeyouthroughadvancedclusteringconceptssuchasdiscoveringtopologyinformation,managingmultipleenvironments,andorchestration.Bytheendofthisbook,youwillbeabletodesignsolutionstoyourautomationandorchestrationproblemsusingplaybooksquicklyandefficiently.
目錄(95章)
倒序
- coverpage
- Ansible Playbook Essentials
- Credits
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Support files eBooks discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Setting Up the Learning Environment
- Understanding the learning environment
- Chapter 1. Blueprinting Your Infrastructure
- Getting introduced to Ansible
- Plays
- Our first playbook
- Review questions
- Summary
- Chapter 2. Going Modular with Ansible Roles
- Understanding roles
- Naming roles
- The directory layout for roles
- Creating a site-wide playbook nesting and using include statements
- Creating the www playbook
- Creating a base role
- Creating an Nginx role
- Automating events and actions with handlers
- Adding pre-tasks and post-tasks to playbooks
- Running playbooks with roles
- Review questions
- Summary
- Chapter 3. Separating Code and Data – Variables Facts and Templates
- Static content explosion
- Separating code and data
- Jinja2 templates
- Facts and variables
- Templating the Nginx configurations
- Adding another layer – the MySQL role
- Variable precedence
- The best practices for variable usage
- Review questions
- Summary
- Chapter 4. Bringing In Your Code – Custom Commands and Scripts
- The command modules
- Deploying a WordPress application – a hands-on approach
- Review questions
- Summary
- Chapter 5. Controlling Execution Flow – Conditionals
- The conditional control structure
- Refactoring the MySQL role
- Conditional control structure in Jinja2 templates
- Running a task only once
- Executing roles conditionally
- Review questions
- Summary
- Chapter 6. Iterative Control Structures – Loops
- The omnipotent with statement
- Configuring WordPress requisites
- The PHP5-FPM role
- Creating MySQL databases and user accounts
- Creating Nginx virtual hosts
- Review questions
- Summary
- Chapter 7. Node Discovery and Clustering
- Node discovery with magic variables
- Creating the load balancer role
- Accessing facts for non-playbook hosts
- Review questions
- Summary
- Chapter 8. Encrypting Data with Vault
- Ansible-vault
- Using the Ansible-vault
- Encrypting the database credentials
- Using a password file
- Adding the vault password file option to the Ansible configuration
- Review questions
- Summary
- Chapter 9. Managing Environments
- Approaches for managing environments
- Creating a development environment
- Review questions
- Summary
- Chapter 10. Orchestrating Infrastructure with Ansible
- Ansible as an orchestrator
- Tagging the roles
- Creating an orchestration playbook for WordPress
- Review questions
- Summary
- Appendix A. References
- Index 更新時間:2021-07-16 20:48:04
推薦閱讀
- Java面向對象程序開發及實戰
- Python Network Programming Cookbook(Second Edition)
- Scala謎題
- C# 8.0核心技術指南(原書第8版)
- Vue.js 2 Web Development Projects
- HTML5權威指南
- Scala編程(第5版)
- Arduino可穿戴設備開發
- Extending Unity with Editor Scripting
- 區塊鏈項目開發指南
- Getting Started with React VR
- 每個人的Python:數學、算法和游戲編程訓練營
- Mastering Data Analysis with R
- Delphi Cookbook
- MATLAB/Simulink與過程控制系統仿真
- 智能優化算法與MATLAB編程實踐
- HTML5與CSS3權威指南(第2版·上冊)
- Mastering jQuery UI
- 程序員面試筆試通關寶典
- 來吧,一起創客
- HTML5+CSS3開發實戰
- Microsoft Tabular Modeling Cookbook
- 深入探索JVM垃圾回收:ARM服務器垃圾回收的挑戰和優化
- Python高級編程(第2版)
- Vue.js 2.x by Example
- Kotlin Blueprints
- PHP 7從入門到精通(視頻教學版)
- C語言程序設計教程
- Web Design Blueprints
- 程序員代碼面試指南:IT名企算法與數據結構題目最優解(第2版)