Puppet Class: profile::eventschemas::repositories

Defined in:
modules/profile/manifests/eventschemas/repositories.pp

Overview

Class profile::eventschemas::repositories

Clones all the provided event schema repositories using the eventschemas::repository define.

Parameters

repositories

Hash of repository $name -> git origin. Each of these will be cloned at /srv/eventschemas/repositories/$name Default:

'primary'   => 'schemas/event/primary',
'secondary' => 'schemas/event/secondary',

Parameters:

  • repositories (Any) (defaults to: hiera('profile::eventschemas::repositories', { 'primary' => 'schemas/event/primary', 'secondary' => 'schemas/event/secondary', }))


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

class profile::eventschemas::repositories(
    $repositories = hiera('profile::eventschemas::repositories', {
        'primary'   => 'schemas/event/primary',
        'secondary' => 'schemas/event/secondary',
    })
) {
    keys($repositories).each |String $name| {
        eventschemas::repository { $name:
            origin => $repositories[$name]
        }
    }
}