Puppet Class: realmd::config
- Defined in:
- manifests/config.pp
Overview
Class realmd::config
This class is called from realmd for service config.
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 |
# File 'manifests/config.pp', line 5
class realmd::config {
$_realmd_config = $realmd::realmd_config
$_realmd_config_file = $realmd::realmd_config_file
$_realmd_home_umask = $realmd::homedir_umask
file { $_realmd_config_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0640',
content => template('realmd/realmd.conf.erb'),
}
if $facts['os']['family'] == 'Debian' {
file { '/usr/share/pam-configs/realmd_mkhomedir':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => template('realmd/realmd_mkhomedir.erb'),
notify => Exec['realm-pam-auth-update'],
}
exec { 'realm-pam-auth-update':
command => '/usr/sbin/pam-auth-update --package',
refreshonly => true,
}
}
}
|