Puppet Class: profile::ci::castor::server

Defined in:
modules/profile/manifests/ci/castor/server.pp

Overview

Class role::ci::castor::server

rsync server to store cache related material from CI jobs.



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
# File 'modules/profile/manifests/ci/castor/server.pp', line 5

class profile::ci::castor::server {

    class { 'rsync::server':
        # Disable DNS lookup, they are only needed for host allow/deny which we
        # do not use. That might cause log spam as well: T136276
        rsyncd_conf => {
            'forward lookup' => 'no',
        }
    }

    rsync::server::module { 'caches':
        path      => '/srv/jenkins-workspace/caches',
        read_only => 'yes',
        uid       => 'jenkins-deploy',
        gid       => 'wikidev',
        require   => [
            File['/srv/jenkins-workspace/caches'],
        ],
    }

    file { '/srv/jenkins-workspace/caches':
        ensure  => directory,
        owner   => 'jenkins-deploy',
        group   => 'wikidev',
        mode    => '0775',
        require => Mount['/srv'],
    }
}