aace25f971
Change-Id: I8e579798fb4eeece3d0946e5f0c22972c8b143b5
41 lines
913 B
Puppet
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'],
|
|
],
|
|
}
|
|
}
|