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:
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 thegid
attribute.home
: The home directory of the user. This folder needs to be created separately.manage home
: If this value is set totrue
, it will create thehome
directory when the user iscreated
, and will delete thehome
directory, if the user is set toabsent
.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': ensure...