DOKK / manpages / debian 11 / cdist / cdist-type__user.7.en
CDIST-TYPE__USER(7) cdist CDIST-TYPE__USER(7)

cdist-type__user - Manage users

This cdist type allows you to create or modify users on the target.

None.

absent or present, defaults to present
see usermod(8)
see above
see above
see above
see above
see above

see useradd(8), apply only on user create
see useradd(8), apply only on user create
see userdel(8), apply only on user delete

User is modified
New user added
userdel -r
If user was deleted with homedir
If user was deleted (keeping homedir)

# Create user account for foobar with operating system default settings
__user foobar
# Same but with a different shell
__user foobar --shell /bin/zsh
# Same but for a system account
__user foobar --system
# Set explicit uid and home
__user foobar --uid 1001 --shell /bin/zsh --home /home/foobar
# Drop user if exists
__user foobar --state absent


pw(8), usermod(8)

Steven Armstrong <steven-cdist--@--armstrong.cc>

Copyright (C) 2011 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ungleich GmbH 2020

February 7, 2021 6.9.4