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
|
# File 'manifests/config.pp', line 3
class pdsh::config {
assert_private()
$rcmd_type = $pdsh::rcmd_type
$ssh_args_append = $pdsh::ssh_args_append
if $pdsh::use_setuid {
$_mode = '4755'
} else {
$_mode = '0755'
}
if $pdsh::rcmd_type or $pdsh::ssh_args_append {
$_env_ensure = 'file'
} else {
$_env_ensure = 'absent'
}
if $pdsh::support_dsh {
file { '/etc/dsh':
ensure => 'directory',
path => $pdsh::dsh_config_dir,
owner => 'root',
group => 'root',
mode => '0755',
}
file { '/etc/dsh/group':
ensure => 'directory',
path => $pdsh::dsh_group_dir,
owner => 'root',
group => 'root',
mode => '0755',
purge => $pdsh::dsh_group_dir_purge,
recurse => $pdsh::dsh_group_dir_purge,
}
}
file { '/usr/bin/pdsh':
ensure => 'present',
owner => 'root',
group => 'root',
mode => $_mode,
}
file { '/usr/bin/pdcp':
ensure => 'present',
owner => 'root',
group => 'root',
mode => $_mode,
}
# Template uses:
# - $rcmd_type
# - $ssh_args_append
file { '/etc/profile.d/pdsh.sh':
ensure => $_env_ensure,
owner => 'root',
group => 'root',
mode => '0644',
content => template('pdsh/pdsh.sh.erb'),
}
# Template uses:
# - $rcmd_type
# - $ssh_args_append
file { '/etc/profile.d/pdsh.csh':
ensure => $_env_ensure,
owner => 'root',
group => 'root',
mode => '0644',
content => template('pdsh/pdsh.csh.erb'),
}
}
|