summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/pootle.pp
blob: 7bf6a90b5ed2d314c337049166a9665e3c2a853b (plain)
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
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
# Class: profiles::pootle
# =======================
#
# This class defines the pootle setup for translations.cacert.org.
#
# Parameters
# ----------
#
# This class has no parameters
#
# Examples
# --------
#
# @example
#   class roles::myhost {
#     include profiles::pootle
#   }
#
# Authors
# -------
#
# Jan Dittberner <jandd@cacert.org>
#
# Copyright
# ---------
#
# Copyright 2018 Jan Dittberner
#
class profiles::pootle {
  group { 'pootle':
    ensure => present,
    gid    => 106,
    system => true,
  }
  user { 'pootle':
    ensure  => present,
    comment => 'Pootle daemon',
    system  => true,
    home    => '/var/lib/pootle',
    shell   => '/bin/false',
    require => Group['pootle'],
  }
  group { 'pootle-update':
    ensure => present,
    gid    => 200,
    system => true,
  }
  class { 'sudo':
    config_file_replace => false,
  }
  file { '/usr/local/bin/pootle-update':
    ensure => file,
    source => 'puppet:///modules/profiles/pootle/pootle-update',
    owner  => 'root',
    group  => 'staff',
    mode   => '0755',
  }
  sudo::conf { 'pootle-update':
    content => '%pootle-update ALL = (pootle) NOPASSWD: /usr/local/bin/pootle-update',
  }
}