Puppet Configuration - Puppet (software)

What is Puppet Configuration?

When we have Puppet installed on the system, the following step is to arrange it to complete certain initial operations.

Open Firewall Ports on Machines

To happen the Puppet server achieve the client’s server centrally, one wants to open a stated port on all the machines, i.e. 8140 can be used if it is not in use in any of the machines which we are trying to configure. We want to allow both TCP and UDP communication on all the machines.

Configuration File

The key conformation file for Puppet is etc/puppet/puppet.conf. All the conformation files get formed in a package-based configuration of Puppet. Maximum of the configuration which is essential to configure Puppet is kept in these files and when the Puppet run takes place, it picks up those conformations mechanically. Though, for some exact tasks such as configuring a web server or an external Certificate Authority (CA), Puppet has distinct configuration for files and settings.

Server configuration files are situated in conf.d directory which is also recognized as the Puppet master. These files are by default located under /etc/puppetlabs/puppetserver/conf.d path. These config files are in HOCON format, which retains the basic structure of JSON but it is clearer. When the Puppet startup takes place it picks up all .cong files from conf.d directory and uses them for making any configurational changes. Any variations in these files only takes place when the server is restarted.

List File and Settings File

  • global.conf
  • webserver.conf
  • web-routes.conf
  • puppetserver.conf
  • auth.conf
  • master.conf (deprecated)
  • ca.conf (deprecated)

There are changed configuration files in Puppet which are exact to each component in Puppet.

Puppet.conf

Puppet.conf file is Puppet’s key configuration file. Puppet customs the same configuration file to organize all the obligatory Puppet command and services. All Puppet connected settings such as the definition of Puppet master, Puppet agent, Puppet apply and certificates are defined in this file. Puppet can refer them as per requirement.

The config file look like a standard ini file where the settings can go into the exact application section of the main section.

Main Config Section


Puppet Master Config File

Detail Overview

In Puppet arrangement, the file which is going to be used has numerous arrangement sections where every section has altered kinds of multiple number of settings.

Config Section

Puppet arrangement file principally consists of the resulting config sections.

  • Main − This is stated as the global section which is used by all the instructions and services in Puppet. One describes the default values in the key section which can be predominated by any section present in puppet.conf file.
  • Master − This unit is mentioned by Puppet master service and Puppet cert command.
  • Agent − This unit is mentioned by Puppet agent service.
  • User − It is typically used by Puppet put on command as well as numerous of the less common commands.

Key Components of Config File

Resulting are the key mechanisms of Config file.

Comment Lines

In Puppet, any statement line starts with (#) sign. This might intend with any quantity of space. We can have a limited comment as well within the same line.

Settings Lines

Settings line must consist of −

  • Any amount of leading space (optional)
  • Name of the settings
  • An equals = to sign, which may be surrounded by any number of space
  • A value for the setting

Setting Variables

In maximum of the cases, the value of settings will be a only word but in some singular cases, there are few distinct values.

Paths

In arrangement file settings, take a list of directories. While starting these directories, one must keep in attention that they must be divided by the system path separator character, which is (:) in *nix platforms and semicolons (;) on Windows.

In the description, the file directory which is listed first is scanned and then in future moves to the other directory in the list, if it doesn’t find one.

Files and Directories

All the situations that take a single file or directory can receive an elective hash of consents. When the server is starting up, Puppet will enforce those files or directories in the list.

In the overhead code, the allowable hash are owner, group, and mode. There are individual two valid values of the owner and group keys.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Puppet (software) Topics