Puppet Class: easy_ipa::install::client::manual

Defined in:
manifests/install/client/manual.pp

Overview

Class: easy_ipa::install::client::manual

“Manual” configuration of hosts which don’t have the freeipa-client package



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
# File 'manifests/install/client/manual.pp', line 6

class easy_ipa::install::client::manual
{

  # Generate LDAP base DN from the domain (e.g. dc=vagrant,dc=example,dc=lan)
  $ldap_base_temp = regsubst($::easy_ipa::domain, '\.',',dc=', 'G')
  $ldap_base = regsubst($ldap_base_temp, '^', 'dc=')

  File {
    ensure  => 'present',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
  }

  file { '/etc/krb5.conf':
    content => template('easy_ipa/krb5.conf.erb'),
  }

  file { '/etc/ldap/ldap.conf':
    content => template('easy_ipa/ldap.conf.erb'),
  }

  file { '/etc/sssd/sssd.conf':
    content => template('easy_ipa/sssd.conf.erb'),
    mode    => '0600',
  }

  package { 'krb5-user':
    ensure => 'present',
  }
}