Puppet Class: helmfile::repository

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • repository (String)
  • srcdir (Stdlib::Unixpath)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/helmfile/manifests/repository.pp', line 2

class helmfile::repository(
    String $repository,
    Stdlib::Unixpath $srcdir,
) {
    git::clone { $repository:
        ensure    => 'present',
        directory => $srcdir,
    }

    systemd::timer::job { 'git_pull_charts':
        ensure          => present,
        description     => 'Pull changes on deployment-charts repo',
        command         => "/bin/bash -c 'cd ${srcdir} && /usr/bin/git pull >/dev/null 2>&1'",
        interval        => {
            'start'    => 'OnCalendar',
            'interval' => '*-*-* *:*:00', # every minute
        },
        logging_enabled => false,
        user            => 'root',
    }

}