O'Reilly logo

Learning Puppet for Windows Server by Fuat Ulugay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Puppet Facts, Functions, and Templates

In this chapter, we will learn more advanced details of Puppet such as:

  • Puppet facts
  • Puppet templates
  • Puppet functions

If you are familiar with programming languages, this chapter will be much easier to follow. Puppet uses Ruby as the coding language. We will not dive deep into the coding aspect and will use only enough coding to solve our problems. So, even if you do not have any coding experience, it will not be too hard to follow.

Puppet facts

Facts are structured data about the system that we can use anywhere in our manifests. They are imported to the Puppet parser as top scope variables. To display the facts of a host, we can use the facter command. We can write the command as follows to display ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required