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
68
69
|
# File 'manifests/frontend/config.pp', line 3
class storm::frontend::config (
) {
# Service's host credentials directory
if !defined(File['/etc/grid-security/storm']) {
file { '/etc/grid-security/storm':
ensure => directory,
owner => 'storm',
group => 'storm',
mode => '0755',
recurse => true,
}
# Service's hostcert
file { '/etc/grid-security/storm/hostcert.pem':
ensure => file,
mode => '0644',
owner => 'storm',
group => 'storm',
source => '/etc/grid-security/hostcert.pem',
require => File['/etc/grid-security/storm'],
}
# Service's hostkey
file { '/etc/grid-security/storm/hostkey.pem':
ensure => file,
mode => '0400',
owner => 'storm',
group => 'storm',
source => '/etc/grid-security/hostkey.pem',
require => File['/etc/grid-security/storm'],
}
}
$conf_file='/etc/storm/frontend-server/storm-frontend-server.conf'
if (!empty($storm::frontend::storm_frontend_server_conf_file)) {
file { $conf_file:
ensure => file,
owner => 'root',
group => 'storm',
source => $storm::frontend::storm_frontend_server_conf_file,
notify => Service['storm-frontend-server'],
require => Package['storm-frontend-mp'],
}
} else {
$conf_template_file='storm/etc/storm/frontend-server/storm-frontend-server.conf.erb'
file { $conf_file:
ensure => file,
owner => 'root',
group => 'storm',
content => template($conf_template_file),
notify => Service['storm-frontend-server'],
require => Package['storm-frontend-mp'],
}
}
$ld_library_path=$facts['os']['architecture'] ? {
'x86_64' => '/usr/lib64/storm',
default => '/usr/lib/storm',
}
$sysconfig_file='/etc/sysconfig/storm-frontend-server'
$sysconfig_template_file='storm/etc/sysconfig/storm-frontend-server.erb'
file { $sysconfig_file:
ensure => file,
content => template($sysconfig_template_file),
notify => Service['storm-frontend-server'],
require => Package['storm-frontend-mp'],
}
}
|