Puppet Class: profile::miscweb::rsync

Defined in:
modules/profile/manifests/miscweb/rsync.pp

Overview

SPDX-License-Identifier: Apache-2.0 setup rsync for misc. apps data

Parameters:

  • src_host (Stdlib::Fqdn) (defaults to: lookup('profile::miscweb::rsync::src_host'))
  • dst_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::miscweb::rsync::dst_hosts'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/miscweb/rsync.pp', line 3

class profile::miscweb::rsync (
    Stdlib::Fqdn        $src_host  = lookup('profile::miscweb::rsync::src_host'),
    Array[Stdlib::Fqdn] $dst_hosts = lookup('profile::miscweb::rsync::dst_hosts'),
){

    if $::fqdn in $dst_hosts {

        firewall::service { 'miscapps-rsync':
            proto  => 'tcp',
            port   => 873,
            srange => [$src_host],
        }

        class { '::rsync::server': }

        rsync::server::module { 'miscapps-srv':
            path        => '/srv/',
            read_only   => 'no',
            hosts_allow => [$src_host],
        }
    }
}