Chef cookbook master over 80 incredibly effective recipes to manage the day-to-day complications in your infrastructure

Master over 80 incredibly effective recipes to manage the day-to-day complications in your infrastructure About This Book Immediately apply Devops techniques and methods, then combine them with powerful Chef tools to manage and automate your infrastructure Address the growing challenges of code mana...

Descripción completa

Detalles Bibliográficos
Otros Autores: Marschall, Matthias, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham : Packt 2017.
Edición:Third edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630140006719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Customer Feedback
  • Table of Contents
  • Preface
  • Chapter 1: Chef Infrastructure
  • Introduction
  • Using version control
  • Installing the Chef Development Kit on your workstation
  • Using the hosted Chef platform
  • Managing virtual machines with Vagrant
  • Creating and using cookbooks
  • Inspecting files on your Chef server with knife
  • Defining cookbook dependencies
  • Managing cookbook dependencies with Berkshelf
  • Using custom knife plugins
  • Deleting a node from the Chef server
  • Developing recipes with local mode
  • Using roles
  • Using environments
  • Freezing cookbooks
  • Running the Chef client as a daemon
  • Chapter 2: Evaluating and Troubleshooting Cookbooks and Chef Runs
  • Introduction
  • Testing your Chef cookbooks with cookstyle and Rubocop
  • Flagging problems in your Chef cookbooks with Foodcritic
  • Test-driven development for cookbooks using ChefSpec
  • Compliance testing with InSpec
  • Integration-testing your Chef cookbooks with Test Kitchen
  • Showing affected nodes before uploading cookbooks
  • Overriding a node's run list to execute a single recipe
  • Using chef-shell
  • Using why-run mode to find out what a recipe might do
  • Debugging Chef client runs
  • Inspecting the results of your last Chef run
  • Using Reporting to keep track of all your Chef client runs
  • Raising and logging exceptions in recipes
  • Diff-ing cookbooks with knife
  • Using community exception and report handlers
  • Chapter 3: Chef Language and Style
  • Introduction
  • Using community Chef style
  • Using attributes to dynamically configure recipes
  • Using templates
  • Mixing plain Ruby with Chef DSL
  • Installing Ruby gems and using them in recipes
  • Using libraries
  • Creating your own custom resource.
  • Extending community cookbooks by using application wrapper cookbooks
  • Creating custom Ohai plugins
  • Creating custom knife plugins
  • Chapter 4: Writing Better Cookbooks
  • Introduction
  • Setting environment variables
  • Passing arguments to shell commands
  • Overriding attributes
  • Using search to find nodes
  • Using data bags
  • Using search to find data bag items
  • Using encrypted data bag items
  • Accessing data bag values from external scripts
  • Getting information about the environment
  • Writing cross-platform cookbooks
  • Making recipes idempotent by using conditional execution
  • Chapter 5: Working with Files and Packages
  • Introduction
  • Creating configuration files using templates
  • Using pure Ruby in templates for conditionals and iterations
  • Installing packages from a third-party repository
  • Installing software from source
  • Running a command when a file is updated
  • Distributing directory trees
  • Cleaning up old files
  • Distributing different files based on the target platform
  • Chapter 6: Users and Applications
  • Introduction
  • Creating users from data bags
  • Securing the Secure Shell daemon
  • Enabling passwordless sudo
  • Managing NTP
  • Installing nginx from source
  • Creating nginx virtual hosts
  • Creating MySQL databases and users
  • Managing Ruby on Rails applications
  • Managing Varnish
  • Managing your local workstation with Chef Pantry
  • Chapter 7: Servers and Cloud Infrastructure
  • Introduction
  • Creating cookbooks from a running system with Blueprint
  • Running the same command on many machines at once
  • Setting up SNMP for external monitoring services
  • Deploying a Nagios monitoring server
  • Using HAProxy to load-balance multiple web servers
  • Using custom bootstrap scripts
  • Managing firewalls with iptables
  • Managing fail2ban to ban malicious IP addresses
  • Managing Amazon EC2 instances.
  • Managing aplications with Habitat
  • Index
  • https://www.vagrantup.com/downloads.html.