1
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
|
# File 'modules/profile/manifests/mediawiki/maintenance/generatecaptcha.pp', line 1
class profile::mediawiki::maintenance::generatecaptcha {
file { '/etc/fancycaptcha':
ensure => 'directory',
mode => '0555',
owner => 'root',
group => 'root',
}
file { '/etc/fancycaptcha/words':
mode => '0444',
owner => 'root',
group => 'root',
content => secret('fancycaptcha/words');
}
file { '/etc/fancycaptcha/badwords':
mode => '0444',
owner => 'root',
group => 'root',
content => secret('fancycaptcha/badwords');
}
file { '/usr/local/bin/captchaloop':
owner => 'root',
group => 'root',
mode => '0555',
source => 'puppet:///modules/mediawiki/captchaloop',
}
profile::mediawiki::periodic_job { 'generatecaptcha':
command => '/usr/local/bin/captchaloop',
interval => 'Mon 01:00',
}
}
|