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

Select Status

RSS

windows_home (3) Versions 1.0.0

Generates user's home directory

Policyfile
Berkshelf
Knife
cookbook 'windows_home', '= 1.0.0', :supermarket
cookbook 'windows_home', '= 1.0.0'
knife supermarket install windows_home
knife supermarket download windows_home
README
Dependencies
Changelog
Quality 0%

Windows Home Cookbook

Cookbook Version
Build Status
GitHub Issues

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

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

1.0.0

  • Initial release (ported over from windows_desktop)

Foodcritic Metric
            

1.0.0 failed this metric

FC009: Resource attribute not recognised: /tmp/cook/fa35452b1021cc5590ec3380/windows_home/providers/default.rb:17