Puppet Class: role::ci::slave::labs::docker

Defined in:
modules/role/manifests/ci/slave/labs/docker.pp

Overview

Class role::ci:slave::labs::docker

Experimental Jenkins slave instance for providing Docker based CI builds.

Parameters

docker_lvm_volume

Give Docker its own volume mounted at /var/lib/docker. This uses 70% of /dev/vda4 and leaves the rest for /srv. This should be used for instance types with larger disks (xlarge, bigram, etc.).

filtertags: labs-project-integration

Parameters:

  • docker_lvm_volume (Any) (defaults to: false)


14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/role/manifests/ci/slave/labs/docker.pp', line 14

class role::ci::slave::labs::docker(
    $docker_lvm_volume = false,
) {
    requires_realm('labs')

    system::role { 'role::ci::slave::labs::docker':
        description => 'CI Jenkins slave using Docker on labs' }

    include profile::ci::slave::labs::common
    include profile::ci::docker
    include profile::ci::gitcache

    # If specified, give Docker its own volume mounted at /var/lib/docker
    if $docker_lvm_volume {
        include profile::ci::dockervolume
    }
}