Puppet Class: isp3node::quota::config

Defined in:
manifests/quota/config.pp

Summary

Configures quota

Overview

Adds required quota options to fstab and initially enables user quota on the system

Examples:

include isp3node::quota::config

Parameters:

  • mountpoint (String)

    Mountpoint in fstab to set quota on

  • mountopts (Array[String])

    Mount options to apply to this mountpoint. Defaults to minimum options for system partition + required opts for quota



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
# File 'manifests/quota/config.pp', line 11

class isp3node::quota::config(
  String $mountpoint,
  Array[String] $mountopts,
) {
  mounttab{$mountpoint:
    options  => $mountopts,
    provider => augeas,
  }
  ~> exec{'quota-remount':
    command     => "mount -o remount ${mountpoint}",
    path        => $facts['path'],
    refreshonly => true
  }
  ~> exec{'quota-check':
    command     => 'quotacheck -avugm',
    path        => $facts['path'],
    refreshonly => true
  }
  ~> exec{'quota-on':
    command     => 'quotaon -avug',
    path        => $facts['path'],
    refreshonly => true
  }

}