Puppet Class: profile::misc_apps::rsync

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

Overview

setup rsync for misc. apps data

Parameters:

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


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

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

    if $::fqdn in $dst_hosts {

        ferm::service { 'miscapps-rsync':
            proto  => 'tcp',
            port   => '873',
            srange => "(@resolve((${src_host})) @resolve((${src_host}), AAAA))",
        }

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

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