Mastering Ansible : design, develop, and solve real world automation and orchestration needs by unlocking the automation capabilities of Ansible /
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgment; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: System Architecture and Design of Ansible; Ansible version and configuration; Inventory parsing and data sources; The static inventory; Inventory variable data; Dynamic inventories; Run-time inventory additions; Inventory limiting; Playbook parsing; Order of operations; Relative path assumptions; Play behavior keys; Host selection for plays and tasks; Play and task names; Module transport and execution; Module reference; Module arguments
- Module transport and executionTask performance; Variable types and location; Variable types; Accessing external data; Variable precedence; Precedence order; Extra-vars; Connection variables; Most everything else; The rest of the inventory variables; Facts discovered about a system; Role defaults; Merging hashes; Summary; Chapter 2: Protecting Your Secrets with Ansible; Encrypting data at rest; Things Vault can encrypt; Creating new encrypted files; The password prompt; The password file; The password script; Encrypting existing files; Editing encrypted files
- Password rotation for encrypted filesDecrypting encrypted files; Executing ansible-playbook with Vault-encrypted files; Protecting secrets while operating; Secrets transmitted to remote hosts; Secrets 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; 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 namesBase64 encoding; Searching for content; Omitting undefined arguments; Python 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; 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 tasksConditional task includes; Tagging included tasks; Including handlers; Including variables; vars_files; Dynamic vars_files inclusion; include_vars; extra-vars; Including playbooks; Roles; Role structure; Tasks; Handlers; Variables; Modules; Dependencies; Files and templates; Putting it all together; Role dependencies; Role dependency variables; Tags; Role dependency conditionals; Role application; Mixing roles and tasks; Role sharing; Ansible Galaxy; Summary; Chapter 6: Minimizing Downtime with Rolling Deployments; In-place upgrades