Sobes.tech
Junior — Middle

Can you describe how you initiated or managed Puppet for automating system configuration?

sobes.tech AI

Answer from AI

Puppet is used for automating configuration and managing infrastructure. To initiate and manage Puppet, I usually performed the following steps:

  • Installed Puppet Master (server) and Puppet Agent (clients) on the necessary machines.
  • Created manifests (files with the .pp extension), which described the desired state of systems — for example, installing packages, configuring services, managing files.
  • Used Puppet modules for reusing configurations.
  • Ran Puppet Agent on clients to apply configurations, or initiated runs from Puppet Master.
  • Used version control systems (Git) for version management and collaboration.
  • Configured environments and classifiers (Hiera) for parameterizing configurations.

An example of a simple manifest for installing and starting Apache:

package { 'apache2':
  ensure => installed,
}

service { 'apache2':
  ensure => running,
  enable => true,
  require => Package['apache2'],
}

Thus, Puppet allows centralized and repeatable management of server configurations.