Defined Type: krb5::setting::domain_realm

Defined in:
manifests/setting/domain_realm.pp

Summary

Allows you to configure individual domain => realm mappings.

Overview

It was specifically created so that you could pass in your domains as a name array and then your realm as a value.

Parameters:

  • ensure (String) (defaults to: 'present')

    Whether to set or clear the key. Valid values are ‘present’ and ‘absent’. Setting anything besides ‘absent’ will default to ‘present’.

  • realm (String)

    The realm to which to map your domain.

  • target (Stdlib::Absolutepath) (defaults to: pick(getvar('krb5::config::config_dir'), '/etc/krb5.conf.d'))

    The target directory to which to add setting files.

See Also:

  • krb5krb5.conf(5)

Author:

  • Trevor Vaughan <tvaughan@onyxpoint.com>



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/setting/domain_realm.pp', line 18

define krb5::setting::domain_realm (
  String               $realm,
  String               $ensure = 'present',
  Stdlib::Absolutepath $target = pick(getvar('krb5::config::config_dir'), '/etc/krb5.conf.d')
) {

  if !defined(Class['krb5']) {
    fail('You must include krb5 before using krb5::setting::domain_realm')
  }

  krb5::setting { "domain_realm:${name}":
    ensure => $ensure,
    value  => $realm,
    target => $target
  }

  Class['krb5'] -> Krb5::Setting::Domain_realm[$name]
}