Puppet (software) Interview Questions & Answers

Puppet (software) Interview Questions

Searching for a Puppet (software) job? If you are an expert in Puppet (software) then this is for you. Do not worry, we’ve a right answer for your job interview preparation. If you are preparing for Puppet (software) job interview, we will help you in clearing the interview through Wisdomjobs interview questions and answers page. Puppet (software) is an open source software. It follows client-server architecture. It runs on Unix, Linux and Windows. It can be used for testing small applications like a stand alone. Since Puppet is model-driven, not much programming experience is needed. Good knowledge on Puppet (software) is required for this job. Below are the Puppet (software) interview questions and answers which makes you comfortable to face the interviews:

Puppet (software) Interview Questions And Answers

Puppet (software) Interview Questions
    1. Question 1. What Is Puppet?

      Answer :

      Puppet is a  configuration Tool which is use to automate administration tasks. Puppet Agent(Client) sends request to Puppet Master (Server) and Puppet Master Push Configuration on Agent.

    2. Question 2. What Is Manifests ?

      Answer :

      Manifests, in Puppet, are the files in which the client configuration is specified.

    3. Question 3. What Is Module And How It Is Different From Manifest ?

      Answer :

      Whatever the manifests we defined in modules, can call or include into other manifests. Which makes easier management of Manifests.It helps you to push specific manifests on specific Node or Agent.

    4. Question 4. What Are The Commands To Check Requests Of Certificates ?

      Answer :

      • puppetca –list (2.6)
      • puppet ca list (3.0)

    5. Question 5. What Are The Commands To Sign Requested Certificates ?

      Answer :

      • puppetca  –sign hostname-of-agent (2.6)
      • puppet ca  sign hostname-of-agent (3.0)

    6. Question 6. Where Puppet Master Stores Certificates?

      Answer :


    7. Question 7. What Is Facter?

      Answer :

      Sometime you need to write manifests on conditional expression based on agent specific data which is available through Facter. Facter provides information like Kernel version,Dist release, IP Address, CPU info and etc.You can defined your facter also.

    8. Question 8. What Is The Use Of Etckeeper-commit-post And Etckeeper-commit-pre On Puppet Agent ?

      Answer :

      • etckeeper-commit-post: In this configuration file you can define command and scripts which executes after pushing configuration on Agente
      • etckeeper-commit-pre: In this configuration file you can define command and scripts which executes before pushing configuration on Agent

    9. Question 9. What Is Puppet Kick ?

      Answer :

      By default Puppet Agent request to Puppet Master after a periodic time which known as “runinterval”. Puppet Kick is a utility which allows you to trigger Puppet Agent from Puppet Master.

    10. Question 10. What Is Mcollective ?

      Answer :

      MCollective is a powerful orchestration framework. Run actions on thousands of servers simultaneously, using existing plugins or writing your own.

    11. Question 11. What’s Special About Puppet’s Model-driven Design?

      Answer :

      Traditionally, managing the configurations of a large group of computers has meant a series of imperative steps; in its rawest state, SSH and a for loop. This general approach grew more sophisticated over time, but it retained the more profound limitations at its root.

      Puppet takes a different approach, which is to model everything — the current state of the node, the desired configuration state, the actions taken during configuration enforcement — as data: each node receives a catalog of resources and relationships, compares it to the current system state, and makes changes as needed to bring the system into compliance.

      The benefits go far beyond just healing the headaches of configuration drift and unknown system state: modeling systems as data lets Puppet simulate configuration changes, track the history of a system over its lifecycle, and prove that refactored manifest code still produces the same system state. It also drastically lowers the barrier to entry for hacking and extending Puppet: instead of analyzing code and reverse-engineering the effects of each step, a user can just parse data, and sysadmins have been able to add significant value to their Puppet deployments with an afternoon’s worth of perl scripting.

    12. Question 12. Why Does Puppet Have Its Own Language? Why Not Use Xml Or Yaml As The Configuration Format? Why Not Use Ruby As The Input Language?

      Answer :

      The language used for manifests is ultimately Puppet’s human interface, and XML and YAML, being data formats developed around the processing capabilities of computers, are horrible human interfaces. While some people are comfortable reading and writing them, there’s a reason why we use web browsers instead of just reading the HTML directly. Also, using XML or YAML would limit any assurance that the interface was declarative — one process might treat an XML configuration differently from another.

    13. Question 13. Can Puppet Manage Workstations?

      Answer :

      Yes, Puppet can manage any type of machine, and is used to manage many organizations that have a mix of laptops and desktops.

    14. Question 14. Does Puppet Run On Windows?

      Answer :

      Yes. As of Puppet 2.7.6 basic types and providers do run on Windows, and the test suite is being run on Windows to ensure future compatibility. More information can be found on the Puppet on Windows page, and bug reports and patches are welcome.

    15. Question 15. What Size Organizations Should Use Puppet?

      Answer :

      There is no minimum or maximum organization size that can benefit from Puppet, but there are sizes that are more likely to benefit. Organizations with only a handful of servers are unlikely to consider maintaining those servers to be a real problem, while those that have more need to consider carefully how they eliminate manual management tasks.

    16. Question 16. My Servers Are All Unique; Can Puppet Still Help?

      Answer :

      Yes.All servers are at least somewhat unique, but very few servers are entirely unique; host names and IP addresses (e.g.) will always differ, but nearly every server runs a relatively standard operating system. Servers are also often very similar to other servers within a single organization — all Solaris servers might have similar security settings, or all web servers might have roughly equivalent configurations — even if they’re very different from servers in other organizations. Finally, servers are often needlessly unique, in that they have been built and managed manually with no attempt at retaining appropriate consistency.

      Puppet can help both on the side of consistency and uniqueness. Puppet can be used to express the consistency that should exist, even if that consistency spans arbitrary sets of servers based on any type of data like operating system, data centre, or physical location. Puppet can also be used to handle uniqueness, either by allowing special provision of what makes a given host unique or through specifying exceptions to otherwise standard classes.

    17. Question 17. Who Is Puppet Labs?

      Answer :

      Puppet Labs (formerly Reductive Labs) is a small, private company focused on re-framing the server automation problem.

    18. Question 18. How Should I Upgrade Puppet And Facter?

      Answer :

      The best way to install and upgrade Puppet and Facter is via your operating system’s package management system, using either your vendor’s repository or one of Puppet Labs’ public repositories.

      If you have installed Puppet from source, make sure you remove old versions entirely (including all application and library files) before upgrading. Configuration data (usually located in/etc/puppet or /var/lib/puppet, although the location can vary) can be left in place between installs.

    19. Question 19. What Characters Are Permitted In A Class Name? In A Module Name? In Other Identifiers?

      Answer :

      Class names can contain lowercase letters, numbers, and underscores, and should begin with a lowercase letter. “::” can be used as a namespace separator.

      The same rules should be used when naming defined resource types, modules, and parameters, although modules and parameters cannot use the namespace separator.

      Variable names can include alphanumeric characters and underscores, and are case-sensitive.

    20. Question 20. How Do I Document My Manifests?

      Answer :

      The puppet language includes a simple documentation syntax, which is currently documented on the Puppet Manifest Documentation wiki page. The puppetdoc command uses this inline documentation to automatically generate RDoc or HTML documents for your manifests and modules.

    21. Question 21. How Do I Manage Passwords On Red Hat Enterprise Linux, Centos, And Fedora Core?

      Answer :

      As described in the Type reference, you need the Shadow Password Library, which is provided by the ruby-shadow package. The ruby-shadow library is available natively for fc6 (and higher), and should build on the corresponding RHEL and CentOS variants.

    22. Question 22. How Do All Of These Variables, Like $operatingsystem, Get Set?

      Answer :

      The variables are all set by Facter. You can get a full listing of the available variables and their values by running facter by itself in a shell.

    23. Question 23. Can I Access Environment Variables With Facter?

      Answer :

      Not directly. However, Facter reads in custom facts from a special subset of environment variables. Any environment variable with a prefix of FACTER_ will be converted into a fact when Facter runs. For example:

       The value of the FACTER_FOO environment variable would now be available in your Puppet manifests as $foo, and would have a value of ‘bar’. Using shell scripting to export an arbitrary subset of environment variables as facts is left as an exercise for the reader.

    24. Question 24. Why Shouldn't I Use Autosign For All My Clients?

      Answer :

      It is very tempting to enable autosign for all nodes, as it cuts down on the manual steps required to bootstrap a new node (or indeed to move it to a new puppet master).

      Typically this would be done with a *.example.com or even * in the autosign.conf file.

      This however can be very dangerous as it can enable a node to masquerade as another node, and get the configuration intended for that node. The reason for this is that the node chooses the certificate common name (‘CN’ – usually its fqdn, but this is fully configurable), and the puppet master then uses this CN to look up the node definition to serve. The certificate itself is stored, so two nodes could not connect with the same CN (eg alice.example.com), but this is not the problem.

      The problem lies in the fact that the puppet master does not make a 1-1 mapping between a node and the first certificate it saw for it, and hence multiple certificates can map to the same node.

      for example:

      • alice.example.com connects, gets node alice { } definition.
      • bob.example.com connects with CN alice.bob.example.com, and also matches node alice { } definition.

      Without autosigning, it would be apparent that bob was trying to get alice’s configuration – as the puppet cert process lists the full fqdn/CN presented. With autosign turned on, bob silently retrieves alice’s configuration.

    25. Question 25. Depending On Your Environment, This May Not Present A Significant Risk. It Essentially Boils Down To The Question ‘do I Trust Everything That Can Connect To My Puppet Master?’.

      Answer :

      If you do still choose to have a permanent, or semi-permanent, permissive autosign.conf, please consider doing the following:

      • Firewall your puppet master – restrict port tcp/8140 to only networks that you trust.
      • Create puppet masters for each ‘trust zone’, and only include the trusted nodes in that Puppet masters manifest.

    26. Question 26. What Happens If I Am On Puppet 2.6x Or Earlier?

      Answer :

      Nothing changes for you. Puppet 2.6.x remains licensed as GPLv2. The license change is not retroactive.

    27. Question 27. Does This Change Affect All The Components Of Puppet?

      Answer :

      As part of this change, we’re also changing the license of the Facter system inventory tool to Apache. This change will take effect with Facter version 1.6.0, and earlier versions of Facter will remain licensed under the GPLv2 license. This change will bring the licensing of Puppet’s two key components into alignment.

      Our other major product, MCollective, is already licensed under the Apache 2.0 license.

    28. Question 28. What Does This Mean If I Or My Company Have Or Want To Contribute Code To Puppet?

      Answer :

      As part of this license change, Puppet Labs has approached every existing contributor to the project and asked them to sign a Contributor License Agreement or CLA.

      Signing this CLA for yourself or your company provides both you and Puppet Labs with additional legal protections, and confirms:

      • That you own and are entitled to the code you are contributing to Puppet
      • That you are willing to have it used in distributions

      This gives assurance that the origins and ownership of the code cannot be disputed in the event of any legal challenge.

    29. Question 29. What If I Haven’t Signed A Cla?

      Answer :

      If you haven’t signed a CLA, then we can’t yet accept your code contribution into Puppet or Facter. Signing a CLA is very easy: simply log into your GitHub account and go to our CLA page to sign the agreement.

      We’ve worked hard to try find to everyone who has contributed code to Puppet, but if you have questions or concerns about a previous contribution you’ve made to Puppet and you don’t believed you’ve signed a CLA, please sign a CLA or contact us for further information.

    30. Question 30. Does Signing A Cla Change Who Owns Puppet?

      Answer :

      The change in license and the requirement for a CLA doesn’t change who owns the code. This is a pure license agreement and NOT a Copyright assignment. If you sign a CLA, you maintain full copyright to your own code and are merely providing a license to Puppet Labs to use your code.

      All other code remains the copyright of Puppet Labs.

    31. Question 31. Which Versions Of Ruby Does Puppet Support?

      Answer :

      Puppet requires an MRI Ruby interpreter. Certain versions of Ruby are tested more thoroughly with Puppet than others, and some versions are not tested at all. Run ruby –version to check the version of Ruby on your system.

      Starting with Puppet 4, puppet-agent packages do not rely on the OS’s Ruby version, as it bundles its own Ruby environment. You can install puppet-agent alongside any version of Ruby or on systems without Ruby installed. Likewise Puppet Enterprise does not rely on the OS’s Ruby version, as it bundles its own Ruby environment. You can install PE alongside any version of Ruby or on systems without Ruby installed.  The Windows installers provided by Puppet Labs don’t rely on the OS’s Ruby version, and can be installed alongside any version of Ruby or on systems without Ruby installed.

    32. Question 32. What Is Puppets' Definition Of A Node?

      Answer :

      A node is any physical or virtual system that is managed by Puppet. This could be a physical server in your data center, a virtual server in the cloud or even a desktop machine.

    33. Question 33. Which Open Source Or Community Tools Do You Use To Make Puppet More Powerful?

      Answer :

      Changes and requests are ticketed through Jira and we manage requests through an internal process. Then, we use Git and Puppet’s Code Manager app to manage Puppet code in accordance with best practices. Additionally, we run all of our Puppet changes through our continuous integration pipeline in Jenkins using the beaker testing framework.”

Popular Interview Questions

All Interview Questions

All Practice Tests

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

Linux Embedded systems Tutorial