/chef-ldap2zone

This cookbook installs and configures Ldap2zone to be used with Bind.

Primary LanguageRuby

ldap2zone Cookbook

Description

This cookbook installs and configures Ldap2zone to be used with Bind.

Requirements

Chef

Tested on 11.12.8 but newer and older version should work just fine.

Platform

The following platforms have been tested with this cookbook, meaning that the recipes run on these platforms without error:

  • Ubuntu
  • Debian

Cookbooks

  • bind - This cookbook is used to install bind.

Capabilities

Attributes

ldap2zone::default

Key Type Description Default
['ldap2zone']['params']['ldap']['uri'] String URI of the LDAP server ldap://localhost
['ldap2zone']['params']['ttl'] Numeric Time to live value for a and ptr records 500
['ldap2zone']['params']['prefix'] String Prefix for zone definition files db.
['ldap2zone']['params']['allow']['update'] Array Allow Updates from these networks []
['ldap2zone']['params']['allow']['transfer'] Array Allow Transfer to zones []
['ldap2zone']['params']['allow']['notify'] Boolean Allow notify to slaves false
['ldap2zone']['cron']['enabled'] Boolean If it is true, it will add a cron entry in order to run Ldap2bind true
['ldap2zone']['cron']['minute'] String Cron minute entry */5
['ldap2zone']['cron']['hour'] String Cron hour entry *
['ldap2zone']['cron']['day'] String Cron day entry *
['ldap2zone']['cron']['month'] String Cron month entry *
['ldap2zone']['cron']['weekday'] String Cron weekday entry *

For more details, see the attributes/default.rb file.

Recipes

ldap2zone::default

This recipe installs and configures Ldap2zone in the node.

Resources and Providers

There is none defined.

Libraries

There is none defined.

Usage

Just include ldap2zone in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[ldap2zone]"
  ]
}

Development

Contributing

  1. Fork the repository on Github
  2. Write your change
  3. Write tests for your change (if applicable)
  4. Run the tests, ensuring they all pass
  5. Submit a Pull Request using Github

License and Authors

Author:: Claudio Cesar Sanchez Tejeda demonccc@gmail.com

Copyright:: 2015, Claudio Cesar Sanchez Tejeda

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.