Modules for creating the files and folders

Now, we are starting with our first module definition. The first will be a very easy one. On all the hosts, we will create a file with the content, Hello World!, under the C:\ Windows\Temp> directory.

The Hello World module

To write our first module, we will connect to the Puppet Master with SSH. The working directory for Puppet modules is /etc/puppet/modules. The following is the screenshot of the /etc/puppet directory:

The Hello World module

As we can see from the screenshot, the modules folder is owned by the root. Thus, we will switch to the root account to continue working with the modules directory. The following command will ...

Get Learning Puppet for Windows Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.