File: debian_fixes.pp

package info (click to toggle)
puppet-module-joshuabaird-ipaclient 2.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 168 kB
  • sloc: ruby: 259; sh: 10; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# == Class: ipaclient::debian_fixes
#
# This class contains a number of fixes to handle quirks in Debian
# FreeIPA clients.
#
class ipaclient::debian_fixes {

  if str2bool($ipaclient::ssh) {
    augeas { 'debian_ssh_fix':
      context => '/files/etc/ssh/sshd_config',
      changes => [
        'set AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys',
        'set GSSAPIAuthentication yes',
        'set AuthorizedKeysCommandUser nobody',
        ]
      }
  }

  if str2bool($ipaclient::mkhomedir) {
    file_line { 'mkhomedir_pam':
      ensure => present,
      line   => 'session required pam_mkhomedir.so',
      path   => '/etc/pam.d/common-session'
    }
  }
}