Puppet Class: dumps::generation::server::rsyncer_misc

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

Overview

Parameters:

  • 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
# File 'modules/dumps/manifests/generation/server/rsyncer_misc.pp', line 1

class dumps::generation::server::rsyncer_misc(
    $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-misc'),
        subscribe => File['/usr/local/bin/rsync-to-peers.sh'],
    }
}