Defined Type: eventschemas::repository

Defined in:
modules/eventschemas/manifests/repository.pp

Overview

Define eventschemas::repository

Clones a git repository into /srv/eventschemas/repositories/$title

Parameters

title

Name of repository, will be used in path to clone.

origin

Git origin to clone

ensure

Passed to git::clone. Default: latest

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/eventschemas/manifests/repository.pp', line 14

define eventschemas::repository(
    String $origin,
    String $ensure = 'latest',
) {
    require ::eventschemas

    $path = "${::eventschemas::repositories_path}/${title}"
    git::clone { $origin:
        ensure    => $ensure,
        directory => $path,
    }
}