Puppet Class: centrify::join
- Defined in:
- manifests/join.pp
Overview
Class centrify::join
This class is called from centrify for joining AD.
| 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | # File 'manifests/join.pp', line 5
class centrify::join {
  $_join_user             = $::centrify::join_user
  $_join_password         = $::centrify::join_password
  $_domain                = $::centrify::domain
  $_container             = $::centrify::container
  $_zone                  = $::centrify::zone
  $_extra_args            = $::centrify::extra_args
  $_precreate             = $::centrify::precreate
  $_server                = $::centrify::server
  $_krb_keytab            = $::centrify::krb_keytab
  $_krb_config            = $::centrify::krb_config
  $_initialize_krb_config = $::centrify::initialize_krb_config
  $_krb_config_file       = $::centrify::krb_config_file
  case $::centrify::join_type {
    /^selfserve$/: {
      class { '::centrify::adjoin::selfserve':
        domain     => $_domain,
        server     => $_server,
        extra_args => $_extra_args,
      }
      contain '::centrify::adjoin::selfserve'
    }
    /^keytab$/: {
      class { '::centrify::adjoin::keytab':
        join_user             => $_join_user,
        krb_keytab            => $_krb_keytab,
        initialize_krb_config => $_initialize_krb_config,
        krb_config_file       => $_krb_config_file,
        krb_config            => $_krb_config,
        domain                => $_domain,
        server                => $_server,
        container             => $_container,
        zone                  => $_zone,
        precreate             => $_precreate,
        extra_args            => $_extra_args,
      }
      contain '::centrify::adjoin::keytab'
    }
    /^password$/: {
      class { '::centrify::adjoin::password':
        join_user     => $_join_user,
        join_password => $_join_password,
        domain        => $_domain,
        server        => $_server,
        container     => $_container,
        zone          => $_zone,
        precreate     => $_precreate,
        extra_args    => $_extra_args,
      }
      contain '::centrify::adjoin::password'
    }
    default: {
      fail("Invalid join_type: ${::centrify::join_type}.")
    }
  }
} |