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


likewise (4) Versions 0.1.7

Installs/Configures likewise

cookbook 'likewise', '= 0.1.7'
cookbook 'likewise', '= 0.1.7', :supermarket
knife cookbook site install likewise
knife cookbook site download likewise

likewise Cookbook

This cookbook is designed to work with the newer likewise open as provided by BeyondTrust (

This cookbook will join a linux system to an existing Active Directory domain and set any preferences you want such as changing the home directory, or specifying allowed users for sudo access.


Right now this has only been tested on Ubuntu so only Ubuntu or Debian systems. In addition you will need to download the packages for likewise and put them into a local repository that each node will have access to.



<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['likewise']['domain']</tt></td> <td>string</td> <td>name of the domain to join</td> <td><tt></tt></td> </tr> <tr> <td><tt>['likewise']['dom_user']</tt></td> <td>string</td> <td>Domain user allowed to join a system to a domain</td> <td><tt>admin</tt></td> </tr> <tr> <td><tt>['likewise']['dom_pw']</tt></td> <td>string</td> <td>Password for dom_user to use for authenticating to the domain</td> <td><tt>password</tt></td> </tr> <tr> <td><tt>['likewise']['dom_join']</tt></td> <td>Boolean</td> <td>whether to join the domain</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['likewise']['packages']</tt></td> <td>Array</td> <td>Package list to install</td> <td><tt>[ "likewise-open" ]</tt></td> </tr> <tr> <td><tt>['likewise']['ad_admins']</tt></td> <td>Array</td> <td>Users that are allowed to use 'sudo'</td> <td><tt>[ "unix_admins" ]</tt></td> </tr> <tr> <td><tt>['likewise']['ad_users']</tt></td> <td>Array</td> <td>Users that are allowed to login to the system</td> <td><tt>[ "Domain Users" ]</tt></td> </tr> <tr> <td><tt>['likewise']['attributes']</tt></td> <td>Hash</td> <td>Hash of attributes and values to set</td> <td><tt>{ "AssumeDefaultDomain" => true, "CreateHomeDir" => true, "HomeDirPrefix" => "/home", "HomeDirTemplate" => "%H/%D/%U", "LoginShellTemplate" => "/bin/bash" }</tt></td> </tr> </table>



For the domain user ('dom_user') and domain password ('dom_pw') you will need to supply a valid user and password that have the authority to join a system to a domain. I don't have support for data bags, or encrypted data bags yet, but you can put these in either your node definition or enviornment (or encapsulate it in another cookbook that then calls this).

For likewise attributes, you can set those to include any attributes you want to set. On each run the cookbook will set those attributes. The above defaults are the ones I've set for my use.

An example of setting the variables in json format (in a run_list or in the default_attributes section):

"likewise": { "domain": "acme.domain", "dom_user": "acme_admin", "dom_pw": "SecurePassword", "dom_join": true }


I'm sure I've left stuff out and I know I'm not doing any testing (just re-running everyhing on each run). I'll work on fixing this. If you find anything wrong or want to contribute in any way please feel free to do so!

License and Authors

Distributed under the Apache 2 license

Robert Parkhurst

Dependent cookbooks

sudo >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

likewise CHANGELOG

This file is used to list changes made in each version of the likewise cookbook.


  • Robert Parkhurst - Initial release of likewise-open

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

No quality metric results found