Cargando…

Mastering Ansible - Second Edition.

Master the ins and outs of advanced operations with Ansible About This Book Learn how to extend Ansible with custom modules, plugins, and inventory sources Utilize advanced Ansible features to orchestrate rolling updates with little to no service disruptions An up-to-date book that brings to light t...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Keating, Jesse
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2017.
Edición:2nd ed.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: System Architecture and Design of Ansible; Ansible version and configuration; Inventory parsing and data sources; Static inventory; Inventory variable data; Dynamic inventories; Runtime inventory additions; Inventory limiting; Playbook parsing; Order of operations; Relative path assumptions; Play behavior directives; Execution strategies; Host selection for plays and tasks; Play and task names; Module transport and execution; Module reference.
  • Module argumentsModule transport and execution; Task performance; Variable types and location; Variable types; Accessing external data; Variable precedence; Precedence order; Merging hashes; Summary; Chapter 2: Protecting Your Secrets with Ansible; Encrypting data at rest; Things Vault can encrypt; Creating new encrypted files; Password prompt; Password file; Password script; Encrypting existing files; Editing encrypted files; Password rotation on encrypted files; Decrypting encrypted files; Executing Ansible-playbook with encrypted files; Protecting secrets while operating.
  • Secrets transmitted to remote hostsSecrets logged to remote or local files; Summary; Chapter 3: Unlocking the Power of Jinja2 Templates; Control structures; Conditionals; Inline conditionals; Loops; Filtering loop items; Loop indexing; Macros; Macro variables; name; arguments; defaults; catch_kwargs; catch_varargs; caller; Data manipulation; Syntax; Useful built-in filters; default; count; random; round; Useful Ansible provided custom filters; Filters related to task status; shuffle; Filters dealing with path names; basename; dirname; expanduser; Base64 encoding; Searching for content.
  • Omitting undefined argumentsPython object methods; String methods; List methods; int and float methods; Comparing values; Comparisons; Logic; Tests; Summary; Chapter 4: Controlling Task Conditions; Defining a failure; Ignoring errors; Defining an error condition; Defining a change; Special handling of the command family; Suppressing a change; Error recovery; Rescue; Always; Summary; Chapter 5: Composing Reusable Ansible Content with Roles; Task, handler, variable, and playbook include concepts; Including tasks; Passing variable values to included tasks; Passing complex data to included tasks.
  • Conditional task includesTagging included tasks; Task includes with loops; Including handlers; Including variables; vars_files; Dynamic vars_files inclusion; include_vars; extra-vars; Including playbooks; Roles; Role structure; Tasks; Handlers; Variables; Modules and plugins; Dependencies; Files and templates; Putting it all together; Role dependencies; Role dependency variables; Tags; Role dependency conditionals; Role application; Mixing roles and tasks; Role includes; Role sharing; Ansible Galaxy; Summary; Chapter 6: Minimizing Downtime with Rolling Deployments; In-place upgrades.