Closed
Description
Describe the solution you'd like
The user.present
state currently allows declarative specification of user accounts, including passwords. However, it cannot currently declaratively determine the account to be in a locked/unlocked state. The shadow.lock_password
execution module function (or appropriate unlock or OS-specific function) must be used outside of the user.present
state in order to achieve the desired effect.
Describe alternatives you've considered
A module.run
with onlyif
/unless
to check the state of the account.
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.