Skip to content

Instantly share code, notes, and snippets.

View pall-valmundsson's full-sized avatar

Pall Valmundsson pall-valmundsson

View GitHub Profile
@pall-valmundsson
pall-valmundsson / adjoin.pp
Created March 23, 2016 15:39
Example of a puppet profile to automatically join a RHEL/CentOS system to Active Directory
class profile::adjoin(
$http_service_principal = false
) {
if !defined(Class['::profile::kerberos']) {
fail('::profile::kerberos needs to be defined for profile::adjoin to work')
}
$active_directory_domain = 'EXAMPLE.COM'
$join_account = 'puppet-adjoin'