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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# File 'manifests/slurmd/config.pp', line 2
class slurm::slurmd::config {
if $slurm::manage_scripts {
if $slurm::manage_epilog and $slurm::epilog {
if '*' in $slurm::epilog {
file { 'epilog':
ensure => 'directory',
path => dirname($slurm::epilog),
source => $slurm::epilog_source,
owner => 'root',
group => 'root',
mode => '0755',
recurse => true,
recurselimit => 1,
purge => true,
sourceselect => $slurm::epilog_sourceselect,
}
} else {
file { 'epilog':
ensure => 'file',
path => $slurm::epilog,
source => $slurm::epilog_source,
owner => 'root',
group => 'root',
mode => '0755',
}
}
}
if $slurm::manage_prolog and $slurm::prolog {
if '*' in $slurm::prolog {
file { 'prolog':
ensure => 'directory',
path => dirname($slurm::prolog),
source => $slurm::prolog_source,
owner => 'root',
group => 'root',
mode => '0755',
recurse => true,
recurselimit => 1,
purge => true,
sourceselect => $slurm::prolog_sourceselect,
}
} else {
file { 'prolog':
ensure => 'file',
path => $slurm::prolog,
source => $slurm::prolog_source,
owner => 'root',
group => 'root',
mode => '0755',
}
}
}
if $slurm::manage_task_epilog and $slurm::task_epilog {
file { 'task_epilog':
ensure => 'file',
path => $slurm::task_epilog,
source => $slurm::task_epilog_source,
owner => 'root',
group => 'root',
mode => '0755',
}
}
if $slurm::manage_task_prolog and $slurm::task_prolog {
file { 'task_prolog':
ensure => 'file',
path => $slurm::task_prolog,
source => $slurm::task_prolog_source,
owner => 'root',
group => 'root',
mode => '0755',
}
}
}
file { 'SlurmdSpoolDir':
ensure => 'directory',
path => $slurm::slurmd_spool_dir,
owner => $slurm::slurmd_user,
group => $slurm::slurmd_user_group,
mode => '0755',
}
if $slurm::configless {
file { 'slurmd-conf-cache':
ensure => 'directory',
path => "${slurm::slurmd_spool_dir}/conf-cache",
owner => $slurm::slurmd_user,
group => $slurm::slurmd_user_group,
mode => '0755',
}
}
}
|