Skip to content
You are not logged in |Login  
     
Limit search to available items
Record:   Prev Next
Resources
More Information
Bestseller
BestsellerE-book
Author Das, Rishabh, author.

Title Extending Ansible.

Imprint Birmingham : Packt Publishing, Limited, March 2016.

Item Status

Description 1 online resource
text file
Summary Discover how to efficiently deploy and customize Ansible in the way your platform demandsAbout This Book Get the first book on the market that maximizes the functionalities of Ansible Master the skill of extending Ansible by deep diving into its modules and plugins Work through this step-by-step guide to customizing Ansible according to your requirementsWho This Book Is ForThis book is perfect for developers and administrators who are familiar with Ansible and Python programming, but have no knowledge of how to customize Ansible. What You Will Learn Get a thorough understanding of Ansible modules Find out everything about plugins that fit in the Ansible architecture Get to grips with designing modules and handling errors Work with data structures Distribute Ansible extensions using PyPi and Git submodules Get to know the various distribution methods of modules and pluginsIn DetailAnsible is an IT automation tool that lets you manage your Infrastructure as a Code. It helps you deploy your applications and manage configurations, thus making life easier. Ansible, in most ways, is self sufficient to address most of your requirements. Ideally, standard modules, libraries, or plugins are used to automate a given IT platform. Customizing Ansible can be done by custom module and plugin development. This book shows you how to automate most of the tasks in your IT environment, thus minimizing the need to manually perform scheduled tasks and extend your Ansible implementation by developing customized modules and plugins. You'll begin by getting an understanding of the fundamental aspects of extending the Ansible framework, such as custom functions and reusable modules. You'll then progress to building custom plugins and extensions using the fundamental building blocks explained earlier. We'll also show you how to automate some tasks using scripts. Finally, we'll demonstrate how these extensions can be seamlessly integrated into existing Ansible installations and explain how to conduct unit testing on these extensions to ensure they work as desired. Style and approach This book is a learning book on the fundamentals of Ansible framework and how it can be leveraged to extend it using the modules and plugins.
Contents Cover -- Copyright -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Getting Started with Ansible -- Why Ansible? -- Why extend Ansible? -- Need something new -- Company-wide abstraction -- Diving into Ansible -- Contributing to Ansible -- Ansible architecture -- Brief overview of Ansible components -- Ansible runner -- Connection plugins -- Playbook -- Roles -- Variables -- Facts -- Runner -- Playbook expressiveness -- Extending Ansible -- Custom fact scripts -- Modules -- Plugins -- Python API -- Summary -- Chapter 2: Getting to Know Ansible Modules -- Writing your first Ansible module -- Execution environment -- Step 1 -- module placement -- Writing a basic Bash module -- Reading arguments -- Handling errors -- Creating Ansible modules in Python -- The AnsibleModule boilerplate -- Documenting modules -- Testing and debugging modules -- Quick local execution -- Best practices -- Summary -- Chapter 3: Digging Deeper into Ansible Modules -- Dry run (check mode) -- Loading modules -- Exploiting Ansible -- Diving deeper into the AnsibleModule boilerplate -- Complex arguments -- Reading complex arguments -- Summary -- Chapter 4: Exploring API -- Python API -- Runner -- Playbook -- Callbacks -- Ansible plugins -- PluginLoader -- Summary -- Chapter 5: An In-Depth Look at Ansible Plugins -- Lookup plugins -- Lookup pluginfile -- Lookup plugin -- csvfile -- Lookup plugin -- dig -- Lookup plugin -- ini -- Loops -- lookup plugins for iteration -- Standard loop -- with_items -- Do until loop-until -- Create your own lookup plugin -- Callback plugins -- Var plugins -- Connection plugins -- Filter plugin -- Using filters with conditions -- Version comparison -- IP address filter -- Understanding the code -- Summary -- Chapter 6: Fitting it All Together -- Integration -- Configuring Ansible.
Environment configuration -- Contributing to Ansible -- Galaxy-sharing roles -- Galaxy -- best practices -- Sharing modules and plugins -- Getting a module into Ansible -- Getting plugins into Ansible -- Points to remember -- Best practices -- Summary -- Chapter 7: Becoming a Master -- A Complete Configuration Guide -- One playbook, different applications, multiple targets -- Ansible roles -- using tags -- Getting infrastructure information and hosting it centrally -- Creating a dynamic inventory of just launched instances -- Ansible through a bastion host -- Happy managers = happy you -- Summary -- Index.
Local Note eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - North America
Subject Ansible (Computer program language)
Software configuration management.
Software configuration management.
Open source software.
Open source software.
Genre/Form System Administration; Programming Languages; Systems Architecture.
Electronic books.
ISBN 9781782175001
1782175008 (Trade Paper)
1785283081
9781785283086 (electronic book)
Standard No. 9781782175001