舉報

會員
Practical Ansible 2
Ansibleenablesyoutoautomatesoftwareprovisioning,configurationmanagement,andapplicationroll-outs,andcanbeusedasadeploymentandorchestrationtool.WhileAnsibleprovidessimpleyetpowerfulfeaturestoautomatemulti-layerenvironmentsusingagentlesscommunication,itcanalsosolveothercriticalITchallenges,suchasensuringcontinuousintegrationandcontinuousdeployment(CI/CD)withzerodowntime.Inthisbook,you'llworkwithAnsible2.9andlearntosolvecomplexissuesquicklywiththehelpoftask-orientedscenarios.You'llstartbyinstallingandconfiguringAnsibleonLinuxandmacOStoautomatemonotonousandrepetitiveITtasksandgettogripswithconceptssuchasplaybooks,inventories,andnetworkmodules.Asyouprogress,you'llgaininsightintotheYAMLsyntaxandlearnhowtoportbetweenAnsibleversions.Inadditiontothis,you'llalsounderstandhowAnsibleenablesyoutoorchestratemulti-layerenvironmentssuchasnetworks,containers,andthecloud.BytheendofthisAnsiblebook,you'llbewell-versedinwritingplaybooksandotherrelatedAnsiblecodetoovercomejustaboutallofyourITchallenges,frominfrastructure-as-codeprovisioningtoapplicationdeployments,andevenhandlingthemundaneday-to-daymaintenancetasksthattakeupsomuchvaluabletime.
最新章節(jié)
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Chapter 12
- Chapter 11
- Chapter 10
- Chapter 9
品牌:中圖公司
上架時間:2021-06-24 15:22:11
出版社:Packt Publishing
本書數(shù)字版權(quán)由中圖公司提供,并由其授權(quán)上海閱文信息技術有限公司制作發(fā)行
- Leave a review - let other readers know what you think 更新時間:2021-06-24 16:07:21
- Other Books You May Enjoy
- Chapter 12
- Chapter 11
- Chapter 10
- Chapter 9
- Chapter 8
- Chapter 7
- Chapter 6
- Chapter 5
- Chapter 4
- Chapter 3
- Chapter 2
- Chapter 1
- Assessments
- Questions
- Summary
- Assigning permissions in AWX
- Creating an organization
- Creating a team
- Creating a user
- Controlling access to AWX
- Running a job
- Creating a job template
- Creating an inventory
- Creating an AWX project
- Running your first playbook from AWX
- Installing AWX
- Technical requirements
- Getting Started with Ansible Tower
- Further reading
- Questions
- Summary
- Checking for bad syntax
- Flushing the code cache
- Limiting the host's execution
- Passing working variables via the CLI
- Solving host connection issues
- Using check mode
- Testing with a playbook
- Using host facts to diagnose failures
- Digging into playbook execution problems
- Technical requirements
- Troubleshooting and Testing Strategies
- Further reading
- Questions
- Summary
- Creating your first machine
- Authentication
- Installation
- Using Ansible to orchestrate OpenStack
- Creating your first machine
- Authentication
- Installation
- Expanding your environment with Rackspace Cloud
- Creating your first machine
- Authentication
- Installation
- Seamless automation integration to Azure
- Creating your first machine
- Authentication
- Installation
- Complementing Google Cloud Platform with automation
- Creating your first machine
- Authentication
- Installation
- Automating against Amazon Web Services
- Exploring container-focused modules
- Automating Docker with Ansible
- Creating a Kubernetes Service with Ansible
- Creating a Kubernetes namespace with Ansible
- Listing Kubernetes namespaces with Ansible
- Installing Ansible Kubernetes dependencies
- Managing Kubernetes objects with Ansible
- Deploying to Kubernetes with ansible-container
- Managing multiple container platforms
- Designing and building containers with playbooks
- Technical requirements
- Container and Cloud Management
- Further reading
- Questions
- Summary
- Conditional statements for networking devices
- Environment variables for network devices
- Connecting to network devices
- Reviewing the available Ansible networking modules
- Enabling network automation
- Learning how Ansible manages networking devices
- Why automate network management?
- Technical requirements
- Network Automation with Ansible
- Section 3: Using Ansible in an Enterprise
- Further reading
- Questions
- Summary
- Securing data with Ansible Vault
- Placing tags in the plays and tasks
- Configuring playbook prompts
- Working with proxies and jump hosts
- Running playbooks locally
- Using the run_once option
- Setting task execution delegation
- Configuring the maximum failure percentage
- Control play execution for rolling updates
- Asynchronous versus synchronous actions
- Technical requirements
- Advanced Ansible Topics
- Further reading
- Questions
- Summary
- Porting between Ansible versions
- Setting OS and distribution variances
- Leveraging version control tools
- Using top-level playbooks
- The proper approach to defining group and host variables
- Differentiating between different environment types
- The best approach to cloud inventories
- The preferred directory layout
- Technical requirements
- Coding Best Practices
- Further reading
- Questions
- Summary
- Sharing plugins with the community
- Learning to integrate custom plugins with Ansible source code
- Creating custom plugins
- Finding included plugins
- Discovering the plugin types
- Technical requirements
- Consuming and Creating Plugins
- Further reading
- Questions
- Summary
- Contributing upstream – submitting a GitHub pull request
- The module checklist
- Testing and documenting your module
- Avoiding common pitfalls
- Developing custom modules
- Module return values
- Accessing module documentation from the command line
- Reviewing the module index
- Executing multiple modules using the command line
- Technical requirements
- Consuming and Creating Modules
- Section 2: Expanding the Capabilities of Ansible
- Further reading
- Questions
- Summary
- Using ansible-pull
- Configuring play execution via strategies
- Grouping tasks using blocks
- Repeating tasks with loops
- Using conditions in your code
- Ansible Galaxy
- Setting up role-based variables and dependencies
- Understanding roles – the playbook organizer
- Defining plays and tasks
- Comparing playbooks and ad hoc tasks
- Understanding the playbook framework
- Technical requirements
- Playbooks and Roles
- Further reading
- Questions
- Summary
- Special host management using patterns
- Using static groups with dynamic groups
- Using multiple inventory sources in the inventory directories
- Generating a dynamic inventory file
- Adding host and group variables to your inventory
- Using host groups
- Creating an inventory file and adding hosts
- Technical requirements
- Defining Your Inventory
- Further reading
- Questions
- Summary
- Understanding Jinja2 filters
- Defining variables
- Understanding ad hoc commands
- Command-line arguments
- Exploring the configuration file
- Organizing your automation code
- Learning the YAML syntax
- Breaking down the Ansible components
- Getting familiar with the Ansible framework
- Technical requirements
- Understanding the Fundamentals of Ansible
- Further reading
- Questions
- Summary
- Running from source versus pre-built RPMs
- Managed node requirements
- Verifying the Ansible installation
- Understanding how Ansible connects to hosts
- Understanding your Ansible installation
- Configuring Windows hosts for Ansible
- Installing Ansible on macOS
- Installing Ansible on Linux and FreeBSD
- Installing and configuring Ansible
- Technical requirements
- Getting Started with Ansible
- Section 1: Learning the Fundamentals of Ansible
- Reviews
- Get in touch
- Conventions used
- Download the color images
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewers
- About the authors
- Contributors
- Why subscribe?
- About Packt
- Practical Ansible 2
- Copyright and Credits
- Title Page
- 封面
- 封面
- Title Page
- Copyright and Credits
- Practical Ansible 2
- About Packt
- Why subscribe?
- Contributors
- About the authors
- About the reviewers
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- Section 1: Learning the Fundamentals of Ansible
- Getting Started with Ansible
- Technical requirements
- Installing and configuring Ansible
- Installing Ansible on Linux and FreeBSD
- Installing Ansible on macOS
- Configuring Windows hosts for Ansible
- Understanding your Ansible installation
- Understanding how Ansible connects to hosts
- Verifying the Ansible installation
- Managed node requirements
- Running from source versus pre-built RPMs
- Summary
- Questions
- Further reading
- Understanding the Fundamentals of Ansible
- Technical requirements
- Getting familiar with the Ansible framework
- Breaking down the Ansible components
- Learning the YAML syntax
- Organizing your automation code
- Exploring the configuration file
- Command-line arguments
- Understanding ad hoc commands
- Defining variables
- Understanding Jinja2 filters
- Summary
- Questions
- Further reading
- Defining Your Inventory
- Technical requirements
- Creating an inventory file and adding hosts
- Using host groups
- Adding host and group variables to your inventory
- Generating a dynamic inventory file
- Using multiple inventory sources in the inventory directories
- Using static groups with dynamic groups
- Special host management using patterns
- Summary
- Questions
- Further reading
- Playbooks and Roles
- Technical requirements
- Understanding the playbook framework
- Comparing playbooks and ad hoc tasks
- Defining plays and tasks
- Understanding roles – the playbook organizer
- Setting up role-based variables and dependencies
- Ansible Galaxy
- Using conditions in your code
- Repeating tasks with loops
- Grouping tasks using blocks
- Configuring play execution via strategies
- Using ansible-pull
- Summary
- Questions
- Further reading
- Section 2: Expanding the Capabilities of Ansible
- Consuming and Creating Modules
- Technical requirements
- Executing multiple modules using the command line
- Reviewing the module index
- Accessing module documentation from the command line
- Module return values
- Developing custom modules
- Avoiding common pitfalls
- Testing and documenting your module
- The module checklist
- Contributing upstream – submitting a GitHub pull request
- Summary
- Questions
- Further reading
- Consuming and Creating Plugins
- Technical requirements
- Discovering the plugin types
- Finding included plugins
- Creating custom plugins
- Learning to integrate custom plugins with Ansible source code
- Sharing plugins with the community
- Summary
- Questions
- Further reading
- Coding Best Practices
- Technical requirements
- The preferred directory layout
- The best approach to cloud inventories
- Differentiating between different environment types
- The proper approach to defining group and host variables
- Using top-level playbooks
- Leveraging version control tools
- Setting OS and distribution variances
- Porting between Ansible versions
- Summary
- Questions
- Further reading
- Advanced Ansible Topics
- Technical requirements
- Asynchronous versus synchronous actions
- Control play execution for rolling updates
- Configuring the maximum failure percentage
- Setting task execution delegation
- Using the run_once option
- Running playbooks locally
- Working with proxies and jump hosts
- Configuring playbook prompts
- Placing tags in the plays and tasks
- Securing data with Ansible Vault
- Summary
- Questions
- Further reading
- Section 3: Using Ansible in an Enterprise
- Network Automation with Ansible
- Technical requirements
- Why automate network management?
- Learning how Ansible manages networking devices
- Enabling network automation
- Reviewing the available Ansible networking modules
- Connecting to network devices
- Environment variables for network devices
- Conditional statements for networking devices
- Summary
- Questions
- Further reading
- Container and Cloud Management
- Technical requirements
- Designing and building containers with playbooks
- Managing multiple container platforms
- Deploying to Kubernetes with ansible-container
- Managing Kubernetes objects with Ansible
- Installing Ansible Kubernetes dependencies
- Listing Kubernetes namespaces with Ansible
- Creating a Kubernetes namespace with Ansible
- Creating a Kubernetes Service with Ansible
- Automating Docker with Ansible
- Exploring container-focused modules
- Automating against Amazon Web Services
- Installation
- Authentication
- Creating your first machine
- Complementing Google Cloud Platform with automation
- Installation
- Authentication
- Creating your first machine
- Seamless automation integration to Azure
- Installation
- Authentication
- Creating your first machine
- Expanding your environment with Rackspace Cloud
- Installation
- Authentication
- Creating your first machine
- Using Ansible to orchestrate OpenStack
- Installation
- Authentication
- Creating your first machine
- Summary
- Questions
- Further reading
- Troubleshooting and Testing Strategies
- Technical requirements
- Digging into playbook execution problems
- Using host facts to diagnose failures
- Testing with a playbook
- Using check mode
- Solving host connection issues
- Passing working variables via the CLI
- Limiting the host's execution
- Flushing the code cache
- Checking for bad syntax
- Summary
- Questions
- Further reading
- Getting Started with Ansible Tower
- Technical requirements
- Installing AWX
- Running your first playbook from AWX
- Creating an AWX project
- Creating an inventory
- Creating a job template
- Running a job
- Controlling access to AWX
- Creating a user
- Creating a team
- Creating an organization
- Assigning permissions in AWX
- Summary
- Questions
- Assessments
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-24 16:07:21