system-config/modules/openafs/manifests/fileserver.pp
Monty Taylor aace25f971 Fix one missed afs->openafs rename
Change-Id: I8e579798fb4eeece3d0946e5f0c22972c8b143b5
2014-10-20 15:55:16 -05:00

41 lines
913 B
Puppet

class openafs::fileserver (
$cell,
$dbservers,
) {
file { '/etc/openafs/server':
ensure => directory,
require => Class['Openafs::Client'],
}
file { '/etc/openafs/server/CellServDB':
ensure => present,
replace => true,
content => template('openafs/server.CellServDB.erb'),
require => File['/etc/openafs/server'],
}
file { '/etc/openafs/server/ThisCell':
ensure => present,
replace => true,
content => template('openafs/ThisCell.erb'),
require => File['/etc/openafs/server'],
}
package { 'openafs-fileserver':
ensure => present,
require => [
File['/etc/openafs/server/CellServDB'],
],
}
# yes, this belongs here. the fileserver service runs bosserver
service { 'openafs-fileserver':
ensure => running,
require => [
File['/etc/openafs/server/CellServDB'],
Package['openafs-fileserver'],
],
}
}