Puppet Class: puppet::config::fileserver

Defined in:
manifests/config/fileserver.pp

Summary

Define file serving from Puppet server

Overview

Define file serving from Puppet server

[Adding file server mount points](www.puppet.com/docs/puppet/7/file_serving.html) [fileserver.conf: Custom fileserver mount points](www.puppet.com/docs/puppet/7/config_file_fileserver.html)

Examples:

include puppet::config::fileserver

Parameters:

  • mount_points (Hash[Pattern[/^[a-zA-Z0-9_]+$/], Stdlib::Absolutepath]) (defaults to: {})


13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/config/fileserver.pp', line 13

class puppet::config::fileserver (
  Hash[Pattern[/^[a-zA-Z0-9_]+$/], Stdlib::Absolutepath] $mount_points = {},
) {
  include puppet::params
  $fileserverconfig = $puppet::params::fileserverconfig

  if size($mount_points) > 0 {
    file { $fileserverconfig:
      ensure  => file,
      content => template('puppet/fileserver.conf.erb'),
    }
  }
}