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

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

Overview

Parameters:

  • user (String) (defaults to: lookup('profile::wmcs::nfs::rsync::user'))
  • group (String) (defaults to: lookup('profile::wmcs::nfs::rsync::group'))
  • datapath (String) (defaults to: lookup('profile::wmcs::nfs::rsync::datapath'))
  • primary_host (Stdlib::Host) (defaults to: lookup('scratch_active_server'))
  • nfs_secondary_servers (Array[Stdlib::Host]) (defaults to: lookup('secondary_nfs_servers'))
  • cluster_ip (Stdlib::IP::Address) (defaults to: lookup('profile::wmcs::nfs::secondary::cluster_ip'))


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
# File 'modules/profile/manifests/wmcs/nfs/rsync.pp', line 1

class profile::wmcs::nfs::rsync(
    String $user = lookup('profile::wmcs::nfs::rsync::user'),
    String $group = lookup('profile::wmcs::nfs::rsync::group'),
    String $datapath = lookup('profile::wmcs::nfs::rsync::datapath'),
    Stdlib::Host $primary_host = lookup('scratch_active_server'),
    Array[Stdlib::Host] $nfs_secondary_servers = lookup('secondary_nfs_servers'),
    Stdlib::IP::Address $cluster_ip = lookup('profile::wmcs::nfs::secondary::cluster_ip'),
) {

    $secondary_host = join(delete($nfs_secondary_servers, $primary_host), '')
    $service_running = $facts['fqdn']? {
        $primary_host => true,
        default       => false,
    }
    class {'::labstore::rsync::syncserver':
        primary_host => $primary_host,
        partner_host => $secondary_host,
        is_active    => $service_running,
        cluster_ip   => $cluster_ip,
    }

    # This may not be needed
    # class {'::vm::higher_min_free_kbytes':}

}