aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/iurt/config.pp
blob: 653ab9b38d84d1dd5e149274e3a472910ee46ad2 (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
define buildsystem::iurt::config() {
    include buildsystem::var::iurt
    include buildsystem::var::webstatus
    include buildsystem::var::repository
    $distribution = $name
    # TODO rename the variable too in template
    $build_login = $buildsystem::var::iurt::login

    $build_timeout = {
      'default' => 18000,
      'atlas' => 57600,
      'cross-gcc' => 115200,
      'eclipse' => 172800,
      'gcc' => 57600,
      'gnuradio' => 36000,
      'itk' => 115200,
      'java-1.8.0-openjdk' => 172800,
      'java-1.8.0-openjfx' => 115200,
      'libreoffice' => 345600,
      'llvm' => 36000,
      'openfoam' => 115200,
      'paraview' => 115200,
      'rust' => 115200,
      'salome' => 57600,
      'webkit' => 57600,
      'wrapitk' => 115200,
    }

    $allow_network_access = [
      'libguestfs', # Needs access to the configured mirrors
    ]

    file { "/etc/iurt/build/${distribution}.conf":
        owner   => $build_login,
        group   => $build_login,
        content => template("buildsystem/iurt.conf")
    }
}