Puppet Class: profile::dumps::distribution::datasets::rsync_config

Defined in:
modules/profile/manifests/dumps/distribution/datasets/rsync_config.pp

Overview

Parameters:

  • rsyncer_settings (Any) (defaults to: lookup('profile::dumps::distribution::rsync_config'))
  • stats_hosts (Any) (defaults to: lookup('profile::dumps::stats_hosts'))
  • peer_hosts (Any) (defaults to: lookup('profile::dumps::peer_hosts'))
  • phab_hosts (Any) (defaults to: lookup('profile::dumps::phab_hosts'))
  • xmldumpsdir (Any) (defaults to: lookup('profile::dumps::distribution::xmldumpspublicdir'))
  • miscdatasetsdir (Any) (defaults to: lookup('profile::dumps::distribution::miscdumpsdir'))


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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'modules/profile/manifests/dumps/distribution/datasets/rsync_config.pp', line 1

class profile::dumps::distribution::datasets::rsync_config(
    $rsyncer_settings = lookup('profile::dumps::distribution::rsync_config'),
    $stats_hosts = lookup('profile::dumps::stats_hosts'),
    $peer_hosts = lookup('profile::dumps::peer_hosts'),
    $phab_hosts = lookup('profile::dumps::phab_hosts'),
    $xmldumpsdir = lookup('profile::dumps::distribution::xmldumpspublicdir'),
    $miscdatasetsdir = lookup('profile::dumps::distribution::miscdumpsdir'),
) {

    $user = $rsyncer_settings['dumps_user']
    $group = $rsyncer_settings['dumps_group']
    $deploygroup = $rsyncer_settings['dumps_deploygroup']
    $mntpoint = $rsyncer_settings['dumps_mntpoint']

    file { '/etc/rsyncd.d/30-rsync-media.conf':
        ensure  => 'present',
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        content => template('profile/dumps/distribution/datasets/rsyncd.conf.media.erb'),
        notify  => Exec['update-rsyncd.conf'],
    }

    file { '/etc/rsyncd.d/30-rsync-pagecounts_ez.conf':
        ensure  => 'present',
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        content => template('profile/dumps/distribution/datasets/rsyncd.conf.pagecounts_ez.erb'),
        notify  => Exec['update-rsyncd.conf'],
    }

    file { '/etc/rsyncd.d/40-rsync-phab_dump.conf':
        ensure  => 'present',
        mode    => '0444',
        owner   => 'root',
        group   => 'root',
        content => template('profile/dumps/distribution/datasets/rsyncd.conf.phab_dump.erb'),
        notify  => Exec['update-rsyncd.conf'],
    }

    class {'::dumps::rsync::peers':
        hosts_allow => $peer_hosts,
        datapath    => $mntpoint,
    }

    class {'::dumps::web::dumplists':
        xmldumpsdir => $xmldumpsdir,
        user        => $user,
    }
}