Enables/disables automatic login for user on boot using a modified version of Gavin Brock's kcpassword.
- Chef 11.14+
- Mac OS X 10.7+
Requires super-user privileges.
Enable automatic login for user and display login screen
macosx_autologin 'username' do
password 'password
restart_loginwindow true
action :enable
end
Disable automatic login and display login screen
macosx_autologin 'username' do
restart_loginwindow true
action :disable
end
enable
- Enables autologin.disable
- Disables autologin.
username
- Username to login as. Required when enabled. Defaults to resource block name.password
- Password of username. Required when enabled.restart_loginwindow
- Display login screen. Defaultfalse
.
This cookbook includes custom ChefSpec matchers you can use to test your own cookbooks.
Example Matcher Usage
expect(chef_run).to enable_macosx_autologin('username').with(
password: 'password'
)
Cookbook Matchers
- enable_macosx_autologin(resource_name)
- disable_macosx_autologin(resource_name)
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Please refer to CONTRIBUTING.
MIT - see the accompanying LICENSE file for details.