Top Answers to Puppet Interview Questions
First let us compare Puppet with Ansible:
|Ease of setup||Not very easy||Easy|
|Management||Not very easy||Easy|
The Puppet is a configuration management tool that is extensively used for automating the administration tasks. Puppet tool helps you deploy, manage and configure your servers.
The Manifests are just files in Puppet wherein the client configuration is specified.
Watch this Puppet Tutorial for Beginners video
The manifests that we define in modules can be included in the manifests. This makes it easier to manage the manifests. It is possible to push the chosen manifest on to the specific agent or node.
The Facter is a system profiling library which is used to gather system information during a Puppet run. The Facter offers your information regarding the IP address, version of kernel, CPU and others.
Puppet Kick lets you trigger the Puppet Agent from Puppet Master. During the run interval the Puppet Agent will send a request to Puppet Master.
The MCollective is a tool that is developed by the Puppet labs for server orchestration. MCollective helps to run thousands of jobs in parallel using your own or existing plugins.
You can use the Puppet tool for managing machines which are laptops, desktops and even workstations.
Beginning with Puppet 2.7.6 it is possible to run on Windows and this ensures future compatibility.
There is no strict rule about the type of organizations that can benefit from Puppet. But an organization with only a few servers is less likely to benefit from Puppet. An organization with huge number of servers can benefit from Puppet as this eliminates the need to manually manage the servers.
Puppet can run on servers that are unique. Even though there might be very less chances of servers being unique since within an organization there are a lot of similarities that exist like the operating system that they are running on, and so on.
Puppet Labs is the company that is interested in solving the Puppet automation problem.
You can upgrade Puppet and Facter through your operating system package management system. You can do this either through the vendor’s repository or through the Puppet Labs’ public repositories.
The characters that are permitted in a class and module name can be lowercase letters, underscores, numbers. It should being with a lowercase letter, you can use “::” as a namespace separator. The variable names can be including alphanumeric characters and underscore and can be case sensitive.
You can set the variables by Facter. It is possible to get the complete list of variables and the values if you run the facter in a shell by itself.