check_po.pp 877 Bytes
Newer Older
intrigeri's avatar
intrigeri committed
1
# Set up what's necessary to automatically check PO files
2
class tails::tester::check_po (
3
4
  String $tools_repo_local_user             = 'jenkins',
  Stdlib::Absolutepath $tools_repo_checkout = '/var/lib/jenkins/tools',
5
  String $tools_repo_url                    = 'git@gitlab-ssh.tails.boum.org:tails/jenkins-tools.git',
6
7
  String $tools_repo_rev                    = 'master',
  String $tools_repo_ensure                 = 'latest',
8
) {
9

10
  if $::operatingsystem != 'Debian' {
intrigeri's avatar
intrigeri committed
11
12
13
    fail('This module only supports Debian.')
  }

14
  $tester_packages = [
intrigeri's avatar
intrigeri committed
15
16
    'i18nspector',
    'python3-polib',
17
18
  ]

19
  ensure_packages($tester_packages)
20

21
22
23
24
25
26
27
28
29
  vcsrepo { $tools_repo_checkout:
    ensure   => $tools_repo_ensure,
    provider => git,
    source   => $tools_repo_url,
    revision => $tools_repo_rev,
    user     => $tools_repo_local_user,
    require  => Package[jenkins-slave],
  }

30
}