Extending Ansible.
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 gui...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited
March 2016.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- 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.