Fix file source path for pootle-update script
[cacert-puppet.git] / sitemodules / profiles / manifests / pootle.pp
1 # Class: profiles::pootle
2 # =======================
3 #
4 # This class defines the pootle setup for translations.cacert.org.
5 #
6 # Parameters
7 # ----------
8 #
9 # This class has no parameters
10 #
11 # Examples
12 # --------
13 #
14 # @example
15 # class roles::myhost {
16 # include profiles::pootle
17 # }
18 #
19 # Authors
20 # -------
21 #
22 # Jan Dittberner <jandd@cacert.org>
23 #
24 # Copyright
25 # ---------
26 #
27 # Copyright 2018 Jan Dittberner
28 #
29 class profiles::pootle {
30 group { 'pootle':
31 ensure => present,
32 gid => 106,
33 system => true,
34 }
35 user { 'pootle':
36 ensure => present,
37 comment => 'Pootle daemon',
38 system => true,
39 home => '/var/lib/pootle',
40 shell => '/bin/false',
41 require => Group['pootle'],
42 }
43 group { 'pootle-update':
44 ensure => present,
45 gid => 200,
46 system => true,
47 }
48 class { 'sudo':
49 config_file_replace => false,
50 }
51 file { '/usr/local/bin/pootle-update':
52 ensure => file,
53 source => 'puppet:///modules/profiles/pootle/pootle-update',
54 owner => 'root',
55 group => 'staff',
56 mode => '0755',
57 }
58 sudo::conf { 'pootle-update':
59 content => '%pootle-update ALL = (pootle) NOPASSWD: /usr/local/bin/pootle-update',
60 }
61 }