Puppet Class: profile::dumps::generation::server::alldumps

Defined in:
modules/profile/manifests/dumps/generation/server/alldumps.pp

Overview

Parameters:

  • dumps_single_backend (Any) (defaults to: lookup('profile::dumps::single_backend'))
  • internals (Any) (defaults to: lookup('profile::dumps::internal'))
  • publics (Any) (defaults to: lookup('profile::dumps::public'))
  • xmldumpsdir (Any) (defaults to: lookup('profile::dumps::xmldumpsdir'))
  • miscdumpsdir (Any) (defaults to: lookup('profile::dumps::miscdumpsdir'))
  • miscsubdirs (Any) (defaults to: lookup('profile::dumps::miscsubdirs'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/dumps/generation/server/alldumps.pp', line 1

class profile::dumps::generation::server::alldumps(
    $dumps_single_backend = lookup('profile::dumps::single_backend'),
    $internals = lookup('profile::dumps::internal'),
    $publics = lookup('profile::dumps::public'),
    $xmldumpsdir = lookup('profile::dumps::xmldumpsdir'),
    $miscdumpsdir = lookup('profile::dumps::miscdumpsdir'),
    $miscsubdirs = lookup('profile::dumps::miscsubdirs'),
) {
    require profile::dumps::generation::server::common

    if (!$dumps_single_backend) {
        $internaldests = $internals.map |$i| {"${i}::data/xmldatadumps/public/"}.join(',')
        $xmlpublicdests = $publics.map |$p| {"${p}::data/xmldatadumps/public/"}.join(',')
        $miscinternaldests = $internals.map |$i| {"${i}::data/otherdumps/"}.join(',')
        $miscpublicdests = $publics.map |$p| {"${p}::data/xmldatadumps/public/other/"}.join(',')

        class { '::dumps::generation::server::rsyncer_all':
            xmldumpsdir    => $xmldumpsdir,
            xmlremotedirs  => "${internaldests},${xmlpublicdests}",
            miscdumpsdir   => $miscdumpsdir,
            miscremotedirs => $miscpublicdests,
            miscsubdirs    => $miscsubdirs,
            miscremotesubs => $miscinternaldests,
        }
    }
}