Puppet Class: profile::wmcs::nfs::rsync::ferm

Defined in:
modules/profile/manifests/wmcs/nfs/rsync/ferm.pp

Overview

Setup ferm rules for rsync - currently this is only for backup

Parameters:

  • secondary_nfs_servers (Array[Stdlib::Host]) (defaults to: lookup('secondary_nfs_servers'))


2
3
4
5
6
7
8
9
10
11
# File 'modules/profile/manifests/wmcs/nfs/rsync/ferm.pp', line 2

class profile::wmcs::nfs::rsync::ferm(
    Array[Stdlib::Host] $secondary_nfs_servers = lookup('secondary_nfs_servers'),
) {
    $rsync_hosts = join($secondary_nfs_servers, ' ')
    ferm::service {'secondary_rsync':
        port   => '22',
        proto  => 'tcp',
        srange => "(@resolve((${rsync_hosts})) @resolve((${rsync_hosts}), AAAA))",
    }
}