Tuesday, December 11, 2018

What Is Infrastructure Code and Configuration Code?

Post oleh : Digital Chandu | Rilis : 12:01 AM | Series :

  1. Infrastructure as a Code
  2. Configuration as Code
Configuration-Code

What does "infrastructure like code" really mean? It defines the full definition of the environment as an icon or script instead of in an official document.

Then what does the definition of the environment include? The environment definition usually includes setting up servers, setting up networks, and setting up other computing resources that are part of the IT infrastructure setup. Therefore, all of these details will be recorded as a file or as a code and verified in the version control tool.

This script or code recorded in the version control system will be the only source to determine the environment or even update these environments.

As a simple example, if we need to add a server to a specific environment, all we have to do is update that information in the environment scripts and start the delivery pipeline instead of starting and promoting a new environment with a server or additional request manually. To help your system administrator.

So the beauty here is that a developer or lab should not be responsible for an expert system to set up their servers for development or testing.

Thus, the infrastructure created in DevOps will be fully automated, and will primarily follow the script being tested for version control, from server installation, setup, and OS installation, before creating communication channels from these cases with published software.

What is the configuration in the form of code?

The configuration in code format is no more than defining all server configurations or any other resources in the form of a code or script and testing them in version control.

These configurable scripts, which are included in the version control system, are implemented as part of the deployment pipeline for infrastructure setup and configuration in automatic mode.

Well, the definition of configurations includes parameters that specify the recommended parameters for successful program launch. Or a set of commands that you need to run at the beginning to configure the program application. Or even can be configured for each component of software that must be installed, user specific roles, user privileges, etc.,

A simple example is the setting of function keys, where the default settings are set as part of the configuration parameter.

Adding another port to the firewall will be another example that can be updated in a script, and these scripts will run as part of the delivery pipeline.

There are several tools to automate the infrastructure in the market. Few of them - Chef, Brides, Terraform, etc. Chef and Doll are configuration management tools based on Ruby, while Terraform is a saving tool.

In addition, today, almost all applications will be hosted in the cloud, AWS, they provide the same RESTAPI, which can be used for this purpose.

google+

linkedin