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 ...

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.