Puppet Class: profile::dumps::distribution::datasets::rsync_config
- Defined in:
- modules/profile/manifests/dumps/distribution/datasets/rsync_config.pp
Overview
SPDX-License-Identifier: Apache-2.0
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 52 |
# File 'modules/profile/manifests/dumps/distribution/datasets/rsync_config.pp', line 2
class profile::dumps::distribution::datasets::rsync_config(
Hash $rsyncer_settings = lookup('profile::dumps::distribution::rsync_config'),
String $stats_hosts = lookup('profile::dumps::stats_hosts'),
String $peer_hosts = lookup('profile::dumps::peer_hosts'),
String $phab_hosts = lookup('profile::dumps::phab_hosts'),
Stdlib::Unixpath $xmldumpsdir = lookup('profile::dumps::distribution::xmldumpspublicdir'),
Stdlib::Unixpath $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,
}
}
|