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

opendj (2) Versions 0.1.1

Installs OpenDJ LDAP server

Berkshelf/Librarian
Policyfile
Knife
cookbook 'opendj', '~> 0.1.1'
cookbook 'opendj', '~> 0.1.1', :supermarket
knife cookbook site install opendj
knife cookbook site download opendj
README
Dependencies
Quality

Description

Installs the OpenDJ LDAP server

Requirements

Platform

Tested and developed on CentOS

Attributes

  • node["opendj"]["version"] - The version of the software we're installing. Should match the archive you place in files/default - see Usage below.

  • node['opendj']['install_dir'] - Where to unpack the software. Defaults to /opt

  • node['opendj']['user'] - The user to run as. Defaults to opendj

  • node['opendj']['user_root_dn'] - The root DN of the directory. Defaults to dc=foo,dc=com

  • node['opendj']['standard_port'] - The port to listen on for unencrypted LDAP. Defaults to 1389 because 389 wouldn't work on most platforms unless we ran as root.

  • node['opendj']['ssl_port'] - The port to listen on for SSL-encrypted LDAP. Defaults to 1636 because 636 wouldn't work on most platforms unless we ran as root.

  • node['opendj']['admin_port'] - The port to listen on for the admin interface. Defaults to 4444

  • node['opendj']['ssl_cert'] - A PEM format certificate to use for SSL connections. This file must be present in the files/default/ directory of this cookbook.

  • node['opendj']['ssl_key'] - A PEM format private key to use for SSL connections. This file must be present in the files/default/ directory of this cookbook.

  • node['opendj']['ssl_chain'] - A list of PEM format certificates connecting our SSL certificate to its root CA. The order should be moving from the local certificate towards the root CA, e.g. intermediate 2, intermediate 1, root. Each file must be present in the files/default/ directory of this cookbook.

  • node['opendj']['keystore_pass'] - The password for the keystore where the SSL data is stored. Defaults to badpass. Override this!

  • node['opendj']['dir_manager_bind_dn'] - The bind DN for the directory manager user. Defaults to cn=Directory Manager

  • node['opendj']['dir_manager_password'] - The password for the directory manager user. Defaults to badpass. Override this!

  • node['opendj']['java_args'] - A dictionary of java classes and the arguments to use to invoke Java for them. Populated with the defaults from OpenDJ.

  • node['opendj']['properties'] - A dictionary of configuration properties to set and their values. The key is the XXX part of the set-XXX-prop directive you'd use with dsconfig. The value is a dictionary with two keys, flags and set.

The flags key's value is a dictionary. The key is the part that comes after the -- in a command line option, and the value is the parameter each flag takes. The set key's value is a dictionary. The keys is the name of the property to set, and the value is what to set it to.

This is all pretty confusing, so it may be easiest to look at the example under Usage, below.

  • node['opendj']['ldif_files'] - A list of ldif files to be loaded into the directory when it's first configured. Each file must also be added to the files/default/ directory of this cookbook.

  • node['opendj']['replication']['host_search'] - A chef search query which returns the systems that are part of this system's replication cluster.

  • node['opendj']['replication']['uid'] - The name of the user to use for replication.

  • node['opendj']['replication']['password'] - The the password to use for the replication user. Defaults to badpass. Override this!

Usage

Place the OpenDJ distribution zip file and matching DSML gateway war file in the files/default directory of this cookbook. Also place any LDIF files you want to load in the same place.

Define at least the user_root_dn and dir_manager_password attributes. Here is an example of a configuration set defined as part of a role:

{
  "name": "foo",
  ...
  "run_list": [
    ...
    "recipe[opendj]"
  ],
  "override_attributes": {
    ...
    "opendj": {
      "user_root_dn": "dc=ucsf,dc=edu",
      "indexes": [
        {
          "itypes": [ "equality", "substring" ],
          "attributes": {
            "displayName": "4000"
          }
        }
      ],
      "properties": {
        "global-configuration": {
          "set": {
            "disabled-privilege": "unindexed-search"
          }
        }
        "virtual-attribute": {
          "flags": {
            "name": "Virtual Static member"
          },
          "set": {
            "allow-retrieving-membership": "true"
          }
        },
      },
      "java_args": {
        "start-ds": "-server -Xms2g -Xmx2g",
        "rebuild-index": "-server -Xmx768m"
      },
      "ldif_files": ["schema.ldif" ]
    }
  }
}

License and Author

Author:: Elliot Kendall (elliot.kendall@ucsf.edu)

Copyright:: 2013, The Regents of the University of California

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.1 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 CONTRIBUTING.md file

Foodcritic Metric
            

0.1.1 failed this metric

FC017: LWRP does not notify when updated: opendj/providers/postinstallconfig.rb:1
FC043: Prefer new notification syntax: opendj/providers/postinstallconfig.rb:201
FC043: Prefer new notification syntax: opendj/providers/postinstallconfig.rb:232
FC059: LWRP provider does not declare use_inline_resources: opendj/providers/postinstallconfig.rb:1
Run with Foodcritic Version 11.1.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.1 failed this metric

opendj does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.1 passed this metric

Publish Metric
            

0.1.1 passed this metric

Supported Platforms Metric
            

0.1.1 passed this metric

Testing File Metric
            

0.1.1 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
            

0.1.1 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 include a tag that matches this cookbook version number