Giter Club home page Giter Club logo

chef-sssd's Introduction

sssd-cookbook

Launch, configure, and manage the SSSD service for communication with an AD backend such as Amazon Directory Service (Simple AD)

Supported Platforms

  • Ubuntu 14.04 LTS
  • CentOS 6.6

Attributes

Key Type Description Default
['sssd']['join_domain'] Boolean whether or not to join the domain (mostly useless to change unless testing) true
['sssd']['enumerate'] Boolean whether or not to enable enumeration (increased load on Simple AD servers, but some setups may need it) true
['sssd']['packages'] Array list of packages to install prior to adcli join varies by OS
['sssd']['computer_name'] String an optional alternate computer name to use when joining the domain (IE: ec2 instance ID) nil
['sssd']['directory_name'] String the directory name, as specified in "Directory Details" in the AWS console nil
['sssd']['realm']['credentials_source'] String source of the realm credentials. see "Realm Credentials" below data_bag
['sssd']['realm']['databag'] String databag that contains the username and password used in "adcli join" or "realm join" nil
['sssd']['realm']['databag_item'] String databag item that contains the username and password used in "adcli join" or "realm join" nil
['sssd']['service_actions'] Symbol | Array of symbols the actions to run on the sssd service [:enable]
['sssd']['encypted_data_bag_secret'] String The encrypted databag secret nil
['sssd']['basedir'] String The base directory under which users home directory should be created /home

Usage

sssd::default

Include sssd in your node's run_list:

{
  "run_list": [
    "recipe[sssd::default]"
  ]
}

Realm Credentials

This cookbook natively supports passing the realm credentials in via a data bag. For those not using data bags or an alternate credential manager, you can implement a wrapper cookbook and pass the realm credentials in via node.run_state.

Example:

node.run_state['realm_username'] = 'Administrator'
node.run_state['realm_password'] = 'N0TaR34lPassw0rd'

include_recipe 'sssd'

Testing

See .kitchen.yml and .kitchen.local.yml.EXAMPLE.

To create a local databag for use with test kitchen's with-registration suite, do:

$ openssl rand -base64 512 | tr -d '\r\n' > test/integration/with-registration/encrypted_data_bag_secret_key
$ knife solo data bag create sssd_credentials realm -c .chef/solo.rb

License and Authors

Author:: Localytics ([email protected])

Copyright:: 2015, Localytics

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.