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
|
# File 'manifests/tool_links.pp', line 3
class graphdb::tool_links {
if ($graphdb::ensure == 'present') {
File {
owner => $graphdb::graphdb_user,
group => $graphdb::graphdb_group,
}
}
$instance_installation_dir = "${graphdb::install_dir}/dist/bin"
$tool_link_ensure = $graphdb::ensure ? {
'present' => 'link',
default => $graphdb::ensure,
}
file { '/bin/console':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/console",
}
file { '/bin/loadrdf':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/loadrdf",
}
file { '/bin/migration-wizard':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/migration-wizard",
}
file { '/bin/rdfvalidator':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/rdfvalidator",
}
file { '/bin/report':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/report",
}
file { '/bin/rule-compiler':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/rule-compiler",
}
file { '/bin/storage-tool':
ensure => $tool_link_ensure,
target => "${instance_installation_dir}/storage-tool",
}
}
|