Puppet Class: profile::wmcs::nfs::misc

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

Overview

Parameters:

  • maps_project_ips (Array[Stdlib::IP::Address]) (defaults to: lookup('profile::wmcs::nfs::misc::maps_project_ips'))
  • backup_server (String) (defaults to: lookup('profile::wmcs::nfs::misc::backup_server'))


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

class profile::wmcs::nfs::misc (
    Array[Stdlib::IP::Address] $maps_project_ips = lookup('profile::wmcs::nfs::misc::maps_project_ips'),
    String                     $backup_server    = lookup('profile::wmcs::nfs::misc::backup_server'),
) {

    include profile::wmcs::nfs::backup_keys
    include profile::wmcs::nfs::bdsync
    include profile::wmcs::nfs::snapshot_manager

    ferm::service { 'cloudstore_ssh_backup':
        proto  => 'tcp',
        port   => '22',
        srange => "(@resolve((${backup_server})) @resolve((${backup_server}), AAAA))",
    }

    file { '/etc/exports':
        ensure  => present,
        content => template('profile/wmcs/nfs/misc/exports.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
    }

    file { '/srv/scratch':
        ensure => 'directory',
        owner  => 'root',
        group  => 'root',
        mode   => '1777',
    }

    file {'/srv/maps':
        ensure => 'directory',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    mount { '/srv/scratch':
        ensure  => mounted,
        fstype  => ext4,
        options => 'defaults,noatime',
        atboot  => true,
        device  => '/dev/srv/scratch',
        require => File['/srv/scratch'],
    }

    mount { '/srv/maps':
        ensure  => mounted,
        fstype  => ext4,
        options => 'defaults,noatime',
        atboot  => true,
        device  => '/dev/srv/maps',
        require => File['/srv/maps'],
    }
}