Forge Home

adcli

Install adcli package and Join Active Directory using adcli

20,221 downloads

2,796 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.3.2 (latest)
  • 0.3.1
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released May 28th 2021
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.0.0 < 5.0.0
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'acjohnson-adcli', '0.3.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add acjohnson-adcli
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install acjohnson-adcli --version 0.3.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

acjohnson/adcli — version 0.3.2 May 28th 2021

puppet-adcli

Build Status Puppet Forge Puppet Forge Downloads Puppet Forge Score Issue Stats

Table of Contents

  1. Overview
  2. Usage
  3. Reference
  4. Limitations

Overview

This module will install the adcli package and Join Active Directory using adcli.

Usage

This module will run 'adcli join domain' on the target node which creates a computer account in the domain for the local machine, and sets up a keytab.

Example:

class {'::adcli':
  ad_domain        => 'ad.example.com',
  ad_join_username => 'username',
  ad_join_password => 'secret',
  ad_join_ou       => 'ou=container,dc=example,dc=com'
}

With optional parameters:

class {'::adcli':
  ad_domain                 => 'ad.example.com',
  ad_join_username          => 'username',
  ad_join_password          => 'secret',
  ad_join_ou                => 'ou=container,dc=example,dc=com',
  ad_join_domain_controller => 'dc01.example.com',
  ad_join_service_names     => ['spn1', 'spn2']
  ad_join_computer_name     => 'TEST-CENTOS-76',
  ad_join_os                => 'CentOS',
  ad_join_os_version        => '7',
  ad_join_os_service_pack   => '6'
}

Using hiera:

adcli::ad_domain: 'ad.example.com'
adcli::ad_join_username: 'username'
adcli::ad_join_password: 'secret'
adcli::ad_join_ou: 'ou=container,dc=example,dc=com'
adcli::ad_join_domain_controller: 'dc01.example.com'
adcli::ad_join_service_names:
  - spn1
  - spn2
adcli::ad_join_computer_name: 'TEST-CENTOS-76'
adcli::ad_join_os: 'CentOS'
adcli::ad_join_os_version: '7'
adcli::ad_join_os_service_pack: '6'

Reference

ad_domain Defines the Active Directory domain to join Type: string Default: undef

ad_join_username Defines the Active Directory username to use during domain join operations. Type: string Default: undef

$ad_join_password Defines the Active Directory password to use during domain join operations. hiera-eyaml should be used for secure storage of this password. Type: string Default: undef

$ad_join_ou Defines the Active Directory organizational unit to use during domain join operations. Type: string Default: undef

$ad_join_domain_controller (optional) Specify which domain controller to use during the join operation. Type: string Default: undef

$ad_join_service_names (optional) Specify additional kerberos service principals to be created on the account. Type: array Default: []

$ad_join_computer_name (optional) Specify a custom computer name to use during the join operation. This equates to the sAMAccountName property in Active Directory. Type: string Default: undef

$ad_join_os (optional) Populates the Active Directory value for Operating System Name. Type: string Default: undef

$ad_join_os_version (optional) Populates the Active Directory value for Operating System Version. Type: string Default: undef

$ad_join_os_service_pack (optional) Populates the Active Directory value for Operating System Service Pack. Type: string Default: undef

Limitations

Tested on:

  • RHEL & CentOS 6,7

Credits

  • This Puppet module and TravisCI layout is based on sgnl05-sssd by Gjermund Jensvoll