Book Image

Learning Puppet for Windows Server

By : Fuat Ulugay
Book Image

Learning Puppet for Windows Server

By: Fuat Ulugay

Overview of this book

Table of Contents (15 chapters)
Learning Puppet for Windows Server
About the Author
About the Reviewers

Managing users

The user resource type is used to manage the local users. It was first built for Linux systems, so it has its limitations. The following is the list of attributes that can be used for Windows. One of the important limitations is that, Puppet can manage the local users (not domain users). The attributes are as follows:

  • name: The user name.

  • ensure: The state of the user (present, or absent).

  • comment: The description of the user, usually the full name.

  • groups: The groups that the user will be assigned. Note that you can't use the gid attribute.

  • home: The home directory of the user. This folder needs to be created separately.

  • manage home: If this value is set to true, it will create the home directory when the user is created, and will delete the home directory, if the user is set to absent.

  • password: Note that passwords can only be specified in clear text, since Windows has no API to set the password hash.

After covering the details, here is an example definition:

user { 'testuser':