Extending Ansible

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 29. März 2016
  • |
  • 102 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-308-6 (ISBN)
Discover how to efficiently deploy and customize Ansible in the way your platform demandsAbout This BookGet the first book on the market that maximizes the functionalities of AnsibleMaster the skill of extending Ansible by deep diving into its modules and pluginsWork 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 LearnGet a thorough understanding of Ansible modulesFind out everything about plugins that fit in the Ansible architectureGet to grips with designing modules and handling errorsWork with data structuresDistribute Ansible extensions using PyPi and Git submodulesGet 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.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-308-6 (9781785283086)
1785283081 (1785283081)
weitere Ausgaben werden ermittelt
Rishabh Das, presently working with Red Hat India, is responsible for managing and maintaining the CI/CD workflow and infrastructure for his team. He has more than 3 years of industry experience and has extensive hands-on experience with Ansible. You can reach Rishabh on Twitter at @rshbhdas.
  • 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

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

24,93 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok