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

The Puppet functions

Functions are predefined codes of Ruby. For example, the template('modulename/templatename') code we used in the templates example is a function that is calling the template file as content. Most of the functions return a value or modify the catalog. In the next section, we will start with the stdlib functions.

The stdlib functions

There are many ready-made functions in the stdlib module. The complete module name is puppetlabs-stdlib. As the module name implies, the stdlib module has many standard definitions that can be used in different modules. In this section, we will just see some of the function examples and how to use them. You can find the full reference from https://forge.puppetlabs.com/puppetlabs/stdlib. To install ...

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