Skip to Content
Infrastructure as Code Cookbook
book

Infrastructure as Code Cookbook

by Stephane Jourdan, Pierre Pomès
February 2017
Intermediate to advanced
440 pages
8h 45m
English
Packt Publishing
Content preview from Infrastructure as Code Cookbook

Executing remote commands at bootstrap using Terraform

It's a very common practice to have a set of initial commands executed right after bootstrap, even before the proper configuration management system such as Chef or Ansible takes responsibility. It can include immediate full updating of the OS, initial registration on discovery systems such as Consul, or initial addition of local DNS servers. It really shouldn't go farther than delivering a system in a slightly more advanced and expected state for the next configuration system to take over. Under no circumstance should it replace a proper configuration management tool.

In this recipe, we'll launch a CentOS 7.2 system, then fully update it so it's as secure as possible, install EPEL so we have ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Infrastructure as Code

Infrastructure as Code

Kief Morris
Implementing Modern DevOps

Implementing Modern DevOps

David Gonzalez, Danny Varghese

Publisher Resources

ISBN: 9781786464910