Learning Ansible : use Ansible to configure your systems, deploy software, and orchestrate advanced IT tasks /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
[2014]
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Learning Ansible; Credits; About the Authors; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Ansible; What is Ansible?; Installing Ansible; Installing Ansible from source; Installing Ansible using the system's package manager; Hello Ansible; The Ansible architecture; Configuring Ansible; Configuration using environment variables; Configuration using ansible.cfg; Configuration management; Working with playbooks; The anatomy of a playbook; Variables and their types; Variable names; Valid variable names in Ansible
- Invalid variable names in AnsibleVariables in an included task file; Variables in a playbook; Variables in a global file; Facts as variables; Command-line variables; Variables in an inventory file; Working with inventory files; The basic inventory file; Groups in an inventory file; Groups of groups; Regular expressions with an inventory file; External variables; Host variables; Group variables; Variable files; Overriding configuration parameters with an inventory file; Working with modules; Command modules; The command module; The raw module; The script module; The shell module; File modules
- The file moduleDebugging in Ansible; The template module; The copy module; The source control module
- git; Summary; Chapter 2: Developing, Testing, and Releasing Playbooks; Managing source code
- Git; Developing a playbook; Installing VirtualBox and Vagrant; Downloading the Vagrant box; Developing a machine; Provisioning in Vagrant using an Ansible provisioner; Testing a playbook; Using the
- syntax-check option; The check mode; Indicating differences between files using
- diff; Functional testing in Ansible; Functional testing using Assert; Testing with tags; The
- skip-tags
- The Serverspec toolInstalling Serverspec; Analyzing the Rakefile and running tests; Running playbook_tester; Handling environments; Code based on Git branch; A single stable branch with multiple folders; Summary; Chapter 3: Taking Ansible to Production; Working with the local_action feature; Working with conditionals; Working with loops; Standard loops; Nested Loops; Looping over subelements; Working with include; Working with handlers; Working with roles; The Cassandra role; Creating a task file with roles; Using handlers with roles; The Ansible template
- Jinja filters
- Formatting data using filtersUsing filters with conditionals; Defaulting undefined variables; Security Management; Using Ansible Vault; Encrypting user passwords; Hiding passwords; Using no_log; Summary; Chapter 4: Error Handling, Rollback, and Reporting; Error handling and Rollback; Executing the playbook; Callback plugins; Monitoring and alerting; E-mails; HipChat; Nagios; Graphite; Time for an error; Summary; Chapter 5: Working with Custom Modules; Using Python modules; Working with exit_json and fail_json; Testing Python modules; Using Bash modules; Using Ruby modules; Testing modules