Support for htpasswd module. Requires the apache2-utils package for Debian-based distros.
2014.7.0 新版功能.
username:
webutil.user_exists:
- password: secr3t
- htpasswd_file: /etc/nginx/htpasswd
- options: d
- force: true
salt.states.htpasswd.
user_exists
(name, password=None, htpasswd_file=None, options='', force=False, runas=None)¶Make sure the user is inside the specified htpasswd file
salt.modules.htpasswd.useradd