Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

windows_home (3) Versions 2.0.0

Generates user's home directory

Berkshelf/Librarian
Policyfile
Knife
cookbook 'windows_home', '~> 2.0.0'
cookbook 'windows_home', '~> 2.0.0', :supermarket
knife cookbook site install windows_home
knife cookbook site download windows_home
README
Dependencies
Changelog
Quality

Windows Home Cookbook

Cookbook Version Build Status

Windows Home generates user's home directory (e.g. C:\Users\${username}). This is useful for when you need access to directories like Documents or AppData after creating a user.

Tested on Amazon Windows Server 2012 R2 AMI.

Requirements

  • Chef 11.6.0 or higher
  • Windows Server 2008 R2 or higher due to its API usage

Platforms

  • Windows

Usage

Include windows_home as a dependency to use resource.

windows_home

Generates user's home directory (e.g. C:\Users\${username}).

Note the user will have to be created before calling windows_home. If you are not able to create a file under home directory, then make sure you have the appropriate group permissions.

Actions

  • create - Creates and populates the user's home directory.

Attributes

  • username - Username of account to create and populate home directory for. Defaults to name of the resource block.
  • password - The password of the user (required).
  • confidential - Ensure that sensitive resource data is not logged by the chef-client. Default: true.

Example

user 'newuser' do
  password 'N3wPassW0Rd'
end

group 'Administrators' do
  members ['newuser']
  append true
  action :modify
end

windows_home 'newuser' do
  password 'N3wPassW0Rd'
end

ChefSpec Matchers

The Chrome cookbook includes a custom ChefSpec matcher you can use to test your own cookbooks.

Example Matcher Usage

expect(chef_run).to create_windows_home('username').with(
  password: 'N3wPassW0Rd'
)

Windows Home Cookbook Matcher

  • create_windows_home(username)

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Changelog

2.0.0 - 2017-03-17

  • Rename sensitive attribute to confidential to be Chef 13 compatible

1.1.0 - 2017-01-02

  • Add sensitive attribute
  • Use use_inline_resources

1.0.0 - 2015-03-28

  • Initial release (ported over from windows_desktop)

Collaborator Number Metric
            

2.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
            

2.0.0 passed this metric

Foodcritic Metric
            

2.0.0 failed this metric

FC066: Ensure chef_version is set in metadata: windows_home/metadata.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

2.0.0 passed this metric

No Binaries Metric
            

2.0.0 passed this metric

Publish Metric
            

2.0.0 passed this metric

Supported Platforms Metric
            

2.0.0 passed this metric

Testing File Metric
            

2.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
            

2.0.0 passed this metric