-
Notifications
You must be signed in to change notification settings - Fork 88
/
misc.pp
67 lines (58 loc) · 1.8 KB
/
misc.pp
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# NFS misc server:
# - dumps
# - statistics data shuffle
# - scratch
#
# The IPs of the servers allowed to populate dumps ($dump_servers_ips)
# must be set at the node level or via hiera.
#
class role::labs::nfs::misc($dump_servers_ips) {
system::role { 'role::labs::nfs::misc':
description => 'Labs NFS service (misc)',
}
include labstore
include rsync::server
include labstore::backup_keys
include labstore::monitoring::interfaces
include labstore::monitoring::nfsd
# to be included post ldap integration
# include labstore::monitoring::ldap
rsync::server::module { 'pagecounts':
path => '/srv/dumps/pagecounts',
read_only => 'no',
hosts_allow => $dump_servers_ips,
}
rsync::server::module { 'dumps':
path => '/srv/dumps',
read_only => 'no',
hosts_allow => $dump_servers_ips,
}
# Allow users to push files from statistics servers here.
file { '/srv/statistics':
ensure => 'directory',
}
# This also exports /srv/statistics to allow statistics servers
# a way to rsync public data in from production.
$statistics_servers = hiera('statistics_servers')
rsync::server::module { 'statistics':
path => '/srv/statistics',
read_only => 'no',
hosts_allow => $statistics_servers,
require => File['/srv/statistics']
}
file { '/srv/scratch':
ensure => 'directory',
}
# This has a flat exports list
# because it only exports public data
# unconditionally and ro or
# as available to all
file { '/etc/exports':
ensure => present,
content => template('labstore/exports.labs_extras.erb'),
owner => 'root',
group => 'root',
mode => '0444',
}
}