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
|
# File 'manifests/storage/config.pp', line 2
class beegfs::storage::config {
$conn_interfaces = $beegfs::storage_conn_interfaces
$conn_net_filters = $beegfs::storage_conn_net_filters
if ! defined(File['/etc/beegfs']) {
file { '/etc/beegfs':
ensure => 'directory',
owner => 'root',
group => 'root',
mode => '0755',
}
}
if $beegfs::storage_store_directory and ! empty($beegfs::storage_store_directory) {
file { 'beegfs-storeStorageDirectory':
ensure => 'directory',
path => $beegfs::storage_store_directory,
}
}
file { '/etc/beegfs/beegfs-storage.conf':
ensure => 'present',
content => template("beegfs/${beegfs::release}/beegfs-storage.conf.erb"),
owner => 'root',
group => 'root',
mode => '0644',
}
file { $beegfs::storage_conn_interfaces_file:
ensure => $beegfs::storage_conn_interfaces_file_ensure,
content => template('beegfs/interfaces.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}
file { $beegfs::storage_conn_net_filter_file:
ensure => $beegfs::storage_conn_net_filter_file_ensure,
content => template('beegfs/netfilter.erb'),
owner => 'root',
group => 'root',
mode => '0644',
}
if ! defined(File[$beegfs::conn_tcp_only_filter_file]) {
file { $beegfs::conn_tcp_only_filter_file:
ensure => $beegfs::_conn_tcp_only_filter_file_ensure,
content => inline_template('<%= scope.lookupvar("beegfs::conn_tcp_only_filters").join("\n") %>'),
owner => 'root',
group => 'root',
mode => '0644',
}
}
}
|