Puppet Class: dumps::generation::server::rsyncer_all

Defined in:
modules/dumps/manifests/generation/server/rsyncer_all.pp

Overview

Parameters:

  • xmldumpsdir (Any) (defaults to: undef)
  • xmlremotedirs (Any) (defaults to: undef)
  • miscdumpsdir (Any) (defaults to: undef)
  • miscremotedirs (Any) (defaults to: undef)
  • miscsubdirs (Any) (defaults to: undef)
  • miscremotesubs (Any) (defaults to: undef)


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

class dumps::generation::server::rsyncer_all(
    $xmldumpsdir = undef,
    $xmlremotedirs = undef,
    $miscdumpsdir = undef,
    $miscremotedirs = undef,
    $miscsubdirs = undef,
    $miscremotesubs = undef,
)  {
    file { '/usr/local/bin/rsync-to-peers.sh':
        ensure => 'present',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/dumps/generation/rsync-to-peers.sh',
    }

    systemd::service { 'dumps-rsyncer':
        ensure    => 'present',
        restart   => true,
        content   => systemd_template('dumps-rsync-peers-all'),
        subscribe => File['/usr/local/bin/rsync-to-peers.sh'],
    }
}