cookbook 'macosx_autologin', '~> 5.0.0', :supermarket
macosx_autologin (8) Versions 5.0.0 Follow0
Configures automatic login using a Gavin Brock's kcpassword
cookbook 'macosx_autologin', '~> 5.0.0'
knife supermarket install macosx_autologin
knife supermarket download macosx_autologin
Mac OS X Autologin Cookbook
Enables/disables automatic login for user on boot using a modified version of Gavin Brock's kcpassword.
Requirements
- Chef 11.14+
Platforms
- Mac OS X 10.7+
Usage
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
Actions
-
enable
- Enables autologin. -
disable
- Disables autologin.
Attributes
-
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
.
ChefSpec Matchers
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)
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE file for details.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Changelog
5.0.0 2017-03-24
- Rename sensitive attribute to confidential to be Chef 13 compatible
4.0.0 2017-02-03
- Replace recipe with resource to allow for suppressing sensitive info
3.0.0 2015-09-13
- Merge remove recipe into default recipe
2.0.0 2015-05-21
- Convert cookbook from LWRPs to Recipes
- Default restart_loginwindow to false
1.1.2 2015-05-20
- Fix Foodcritic false positive on sensitive resource
1.1.1 2015-05-20
- Update Chef requirements
1.1.0 2015-05-20
- Suppress password output on enable action
- Fix disable action fails when autoLoginUse attribute is missing from com.apple.loginwindow.plist
1.0.0 2015-05-18
- Initial release
Collaborator Number Metric
5.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
5.0.0 passed this metric
Foodcritic Metric
5.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: macosx_autologin/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
5.0.0 passed this metric
Publish Metric
5.0.0 passed this metric
Supported Platforms Metric
5.0.0 passed this metric
Testing File Metric
5.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
5.0.0 passed this metric
5.0.0 failed this metric
5.0.0 passed this metric
Foodcritic Metric
5.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: macosx_autologin/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
5.0.0 passed this metric
Publish Metric
5.0.0 passed this metric
Supported Platforms Metric
5.0.0 passed this metric
Testing File Metric
5.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
5.0.0 passed this metric
5.0.0 failed this metric
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
5.0.0 passed this metric
Publish Metric
5.0.0 passed this metric
Supported Platforms Metric
5.0.0 passed this metric
Testing File Metric
5.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
5.0.0 passed this metric
5.0.0 passed this metric
5.0.0 passed this metric
Testing File Metric
5.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
5.0.0 passed this metric
5.0.0 failed this metric
5.0.0 passed this metric