Puppet Class: eventschemas

Defined in:
puppet/modules/eventschemas/manifests/init.pp

Overview

Class eventschemas

Parameters:

  • service_root_dir (Any) (defaults to: hiera('service::root_dir'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'puppet/modules/eventschemas/manifests/init.pp', line 3

class eventschemas(
    $service_root_dir = hiera('service::root_dir')
) {
    $path = "${service_root_dir}/schemas/event"

    file { ["${service_root_dir}/schemas", $path]:
        ensure => 'directory',
    }

    git::clone { 'schemas/event/primary':
        directory => "${path}/primary",
    }
    git::clone { 'schemas/event/secondary':
        directory => "${path}/secondary",
    }

    service::gitupdate { 'schemas-event-primary':
        dir => "${path}/primary",
    }
    service::gitupdate { 'schemas-event-secondary':
        dir => "${path}/secondary",
    }
}