Linux system configuration management

Top 5 configuration management tools

Learn about configuration management tools and figure out which will work best for your DevOps organization.

gears and lightbulb to represent innovation

DevOps is evolving and gaining traction as organizations discover how it enables them to produce better applications and reduce their software products’ time to market.

DevOps’ core values are Culture, Automation, Measurement, and Sharing (CAMS), and an organization’s adherence to them influences how successful it is.

  • Culture brings people and processes together;
  • Automation creates a fabric for DevOps;
  • Measurement permits improvements; and
  • Sharing enables the feedback loop in the CAMS cycle.

Another DevOps concept is the idea that almost everything can be managed in code: servers, databases, networks, log files, application configurations, documentation, automated tests, deployment processes, and more.

In this article, I’ll focus on one aspect of automation: Configuration management. As part of Infrastructure as Code (IaC), configuration management tools enable the use of tested and proven software development practices for managing and provisioning data centers through plaintext definition files.

By manipulating simple configuration files, a DevOps team can use application development best practices, such as version control, testing, small deployments, and design patterns. In short, this means code can be written to provision and manage an infrastructure as well as automate processes.

Why use configuration management tools?

Configuration management tools enable changes and deployments to be faster, repeatable, scalable, predictable, and able to maintain the desired state, which brings controlled assets into an expected state.

Some advantages of using configuration management tools include:

  • Adherence to coding conventions that make it easier to navigate code
  • Idempotency, which means that the end state remains the same, no matter how many times the code is executed
  • Distribution design to improve managing large numbers of remote servers

Some configuration management tools use a pull model, in which an agent installed on the servers runs periodically to pull the latest definitions from a central repository and apply them to the server. Other tools use a push model, where a central server triggers updates to managed servers.

Top 5 configuration management tools

There are a variety of configuration management tools available, and each has specific features that make it better for some situations than others. Yet the top five configuration management tools, presented below in alphabetical order, have several things in common that I believe are essential for DevOps success: all have an open source license, use externalized configuration definition files, run unattended, and are scriptable. All of the descriptions are based on information from the tools’ software repositories and websites.

Читайте также:  Linux shell no echo

Ansible

«Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications—automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.» —GitHub repository

Ansible is one of my favorite tools; I started using it several years ago and fell in love with it. You can use Ansible to execute the same command for a list of servers from the command line. You can also use it to automate tasks using «playbooks» written into a YAML file, which facilitate communication between teams and non-technical people. Its main advantages are that it is simple, agentless, and easy to read (especially for non-programmers).

Because agents are not required, there is less overhead on servers. An SSH connection is necessary when running in push mode (which is the default), but pull mode is available if needed. Playbooks can be written with a minimal set of commands or they can be scaled for more elaborate automation tasks that could include roles, variables, and modules written by other people.

You can combine Ansible with other tools to create a central console to control processes. Those tools include Ansible Works (AWX), Jenkins, RunDeck, and ARA, which offers traceability when running playbooks.

CFEngine

«CFEngine 3 is a popular open source configuration management system. Its primary function is to provide automated configuration and maintenance of large-scale computer systems.» —GitHub repository

CFEngine was introduced by Mark Burgess in 1993 as a scientific approach to automated configuration management. The goal was to deal with the entropy in computer systems’ configuration and resolve it with end-state «convergence.» Convergence means a desired end-state and elaborates on idempotence as a capacity to reach the desired end-state. Burgess’ research evolved in 2004 when he proposed the Promise theory as a model of voluntary cooperation between agents.

The current version of CFEngine incorporates Promise theory and uses agents running on each server that pull the configuration from a central repository. It requires some expert knowledge to deal with configurations, so it’s best suited for technical people.

Chef

«A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.» —GitHub repository

Chef uses «recipes» written in Ruby to keep your infrastructure running up-to-date and compliant. The recipes describe a series of resources that should be in a particular state. Chef can run in client/server mode or in a standalone configuration named chef-solo. It has good integration with the major cloud providers to automatically provision and configure new machines.

Chef has a solid user base and provides a full toolset to allow people with different technical backgrounds and skills to interact around the recipes. But, at its base, it is more technically oriented tool.

Читайте также:  Canon 3228 драйвер linux

Puppet

«Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks (such as adding users, installing packages, and updating server configurations) based on a centralized specification.» —GitHub repository

Conceived as a tool oriented toward operations and sysadmins, Puppet has consolidated as a configuration management tool. It usually works in a client-server architecture, and an agent communicates with the server to fetch configuration instructions.

Puppet uses a declarative language or Ruby to describe the system configuration. It is organized in modules, and manifest files contain the desired-state goals to keep everything as required. Puppet uses the push model by default, and the pull model can be configured.

Salt

«Software to automate the management and configuration of any infrastructure or application at scale.» — GitHub repository

Salt was created for high-speed data collection and scale beyond tens of thousands of servers. It uses Python modules to handle configuration details and specific actions. These modules manage all of Salt’s remote execution and state management behavior. Some level of technical skills are required to configure the modules.

Salt uses a client-server topology (with the Salt master as server and Salt minions as clients). Configurations are kept in Salt state files, which describe everything required to keep a system in the desired state.

Conclusion

The landscape of DevOps tools is evolving all the time, and it is important to keep an eye on the changes. I hope this article will encourage you to explore these concepts and tools further. If so, the Cloud Native Computing Foundation (CNCF) maintains a good reference in the Cloud Native Landscape Project.

diagram of planning a cloud

Continuous infrastructure: The other CI

Want to boost the efficiency of your DevOps operations? Make infrastructure a first-class citizen of the CI pipeline.

Источник

Best Free and Open Source Linux Configuration Management Software

Configuration Management

System administrators are responsible for the maintenance and operation of a computer system and network. This is a major task with a huge number of decisions to be made regarding the configuration of the system.

Configuration Management is a term that may not be familiar to many Linux users. But for system administrators the concept will be well known. In a nutshell, Configuration Management software enables administrators to automatically manage the entire configuration of one or multiple computers. An IT team’s main responsibility is to maintain, secure, and operate an organization’s systems and networks. This, in itself, carries a huge responsibility. IT teams that maintain technology infrastructure, deploy applications, and provisioning environments with many manual tasks are inefficient. In modern environments, services are rarely deployed in isolation. Simple applications may need several services to run – such as a web server and a database. Deploying more complex systems, many services may need installing, configuring, and linked together.

Читайте также:  Средства защиты операционной системы linux

Ansible

Why is this type of software important? By having tools that automate the configuration and software infrastructure, an organization’s server administration costs are reduced. Furthermore, this type of software enables a large complicated infrastructure to be supported with fewer system administrators. There are also efficiency improvements made by helping to reduce the amount of repetitive tasks performed by the administrator. Moreover, configuration management software help organizations to be able to scale up their computer infrastructure more easily and to instill flexibility in server configuration.

Configuration Management tools work by changing the state of the system. The goal is to get a system from whatever state it is in, into the desired state. The state of a system is mostly described by all the configuration files in the file system, and by the programs and processes that are running. Configuration management software are the tools of choice for many system administrators and DevOps professionals.

The software featured in this article are declarative configuration management system. Here the system administrator decides what state the system is to be in, and a runtime pushes the system into that state.

Here’s our recommendations.

Best Free Open Source Linux Configuration Management

To provide an insight into the quality of software that is available, we have compiled a list of 10 high quality Linux Configuration Management tools. Hopefully, there will be something of interest for any organization that wants to streamline their computer infrastructure.

Let’s explore the 10 Configuration Management tools at hand. For each title we have compiled its own portal page, a full description with an in-depth analysis of its features, together with links to relevant resources.

Configuration Management
Ansible Software provisioning, configuration management, and application deployment
Salt Python-based configuration management software and remote execution engine
Chef Automate IT Infrastructure for Hardened, Consistent Configuration
Puppet Centralized configuration management for networks
CFEngine IT infrastructure automation and Continuous Operations framework
Juju Simple, secure devops tooling
Quattor Complex set of tools for automated machine management
Rudder Continuous configuration for effective compliance
cdist Configuration management tool that uses the Bourne Shell for scripting
Bcfg2 Produce a consistent, reproducible, and verifiable description
Best Free and Open Source SoftwareRead our complete collection of recommended free and open source software. Our curated compilation covers all categories of software.

The software collection forms part of our series of informative articles for Linux enthusiasts. There are hundreds of in-depth reviews, open source alternatives to proprietary software from large corporations like Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

Источник

Оцените статью
Adblock
detector