Github Action to Build Golden Images with HashiCorp Packer
In previous posts we have already shown multiple ways to use HashiCorp Packer to build Golden Images. In this post we will show how to automate the process with
Configuration Management started in the late 1960s in the US Military. They specified exactly how mainframe systems needed to be setup.
In the last few years Configuration Management has become more popular in enterprises. A certain configuration for a system (e.g. database server) is defined. This describes a list of software, libraries or behavior this system should have installed. A central software tool processes this configuration.
If you add another server you can apply the same configuration to it too. The management tool will then proceed to setup the new node according to your configuration.
"The result: a perfectly configured system"
Recipe: Is a single configuration (e.g. create database "my_db")
Cookbook: A full set of configurations (e.g. setup database server)
Roles: Is a way to define certain patterns and processes that exist across nodes
Environments: Is a way to map an organization’s real-life workflow to what can be configured and managed when using Chef server (e.g Test/Staging/Production)
1package 'apache2' do
2 action :install
3end
4
5service 'apache2' do
6 action [ :enable, :start ]
7end
8
9cookbook_file '/var/www/index.html' do
10 source 'index.html'
11 mode '0644'
12end
You are interested in our courses or you simply have a question that needs answering? You can contact us at anytime! We will do our best to answer all your questions.
Contact us