b4b5724a0b
I don't really think this needs any further explanation. Change-Id: I41378bd320c6c6fad2c981d5cc773486af075c41
53 lines
1.1 KiB
Puppet
53 lines
1.1 KiB
Puppet
class openafs::client (
|
|
$realm,
|
|
$cell,
|
|
$kdcs = [$::fqdn],
|
|
$admin_server = [$::fdqn],
|
|
$cache_size = 500000,
|
|
) {
|
|
|
|
include ntp
|
|
class { 'kerberos::client':
|
|
realm => $realm,
|
|
kdcs => $kdcs,
|
|
admin_server => $admin_server,
|
|
}
|
|
|
|
$packages = [
|
|
'openafs-client',
|
|
'openafs-krb5',
|
|
]
|
|
package { $packages:
|
|
ensure => present,
|
|
}
|
|
|
|
file { '/etc/openafs/afs.conf.client':
|
|
ensure => present,
|
|
replace => true,
|
|
source => 'puppet:///modules/openafs/afs.conf.client',
|
|
require => Package['openafs-client'],
|
|
}
|
|
|
|
file { '/etc/openafs/CellServDB':
|
|
ensure => present,
|
|
replace => true,
|
|
source => 'puppet:///modules/openafs/CellServDB',
|
|
require => Package['openafs-client'],
|
|
}
|
|
|
|
file { '/etc/openafs/ThisCell':
|
|
ensure => present,
|
|
replace => true,
|
|
content => template('openafs/ThisCell.erb'),
|
|
require => Package['openafs-client'],
|
|
}
|
|
|
|
file { '/etc/openafs/cacheinfo':
|
|
ensure => present,
|
|
replace => true,
|
|
content => template('openafs/cacheinfo.erb'),
|
|
require => Package['openafs-client'],
|
|
}
|
|
|
|
}
|