1 |
class restrictshell { |
2 |
$allow_svn = "0" |
3 |
$allow_git = "0" |
4 |
$allow_rsync = "0" |
5 |
$allow_pkgsubmit = "0" |
6 |
|
7 |
$ldap_pwfile = "/etc/ldap.secret" |
8 |
|
9 |
class allow_svn_git_pkgsubmit { |
10 |
$allow_svn = "1" |
11 |
$allow_git = "1" |
12 |
$allow_pkgsubmit = "1" |
13 |
} |
14 |
|
15 |
file { '/usr/local/bin/sv_membersh.pl': |
16 |
ensure => present, |
17 |
owner => root, |
18 |
group => root, |
19 |
mode => 755, |
20 |
content => template("restrictshell/sv_membersh.pl"), |
21 |
} |
22 |
|
23 |
file { '/etc/membersh-conf.pl': |
24 |
ensure => present, |
25 |
owner => root, |
26 |
group => root, |
27 |
mode => 755, |
28 |
content => template("restrictshell/membersh-conf.pl"), |
29 |
} |
30 |
|
31 |
package { 'python-ldap': |
32 |
ensure => installed, |
33 |
} |
34 |
|
35 |
$pubkeys_directory = "/var/lib/pubkeys" |
36 |
file { $pubkeys_directory: |
37 |
ensure => directory, |
38 |
owner => root, |
39 |
group => root, |
40 |
mode => 755, |
41 |
} |
42 |
|
43 |
file { '/usr/local/bin/ldap-sshkey2file.py': |
44 |
ensure => present, |
45 |
owner => root, |
46 |
group => root, |
47 |
mode => 755, |
48 |
content => template("restrictshell/ldap-sshkey2file.py"), |
49 |
requires => Package['python-ldap'] |
50 |
} |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
} |