Puppet Class: profile::ci::dockervolume

Defined in:
modules/profile/manifests/ci/dockervolume.pp

Overview

Class profile::ci::dockervolume

Configures an LVM logical volume just for Docker.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/profile/manifests/ci/dockervolume.pp', line 5

class profile::ci::dockervolume {
    labs_lvm::volume { 'docker':
        size      => '70%FREE',
        mountat   => '/var/lib/docker',
        mountmode => '711',
    }

    # Ensure creation of the docker volume before second-local-disk (/srv)
    # since the latter uses a relative size of 100%
    if defined(Class['profile::labs::lvm::srv']) {
        Labs_lvm::Volume['docker'] -> Class['profile::labs::lvm::srv']
    }

    # Ensure volume is created and mounted before Docker is installed
    if defined(Class['docker']) {
        Labs_lvm::Volume['docker'] -> Class['docker']
    }
}