aboutsummaryrefslogtreecommitdiff
path: root/manifests/file.pp
blob: 72c9ebd776357d16994d78ea1d980c85a999b4f7 (plain)
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
# Define: tftp::file
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Usage:
#
define tftp::file (
  $ensure  = file,
  $owner   = 'tftp',
  $group   = 'tftp',
  $mode    = '0644',
  $content = undef,
  $source  = undef
) {
  include 'tftp'

  file { "${tftp::directory}/${name}":
    ensure  => $ensure,
    owner   => $owner,
    group   => $group,
    mode    => $mode,
    content => $content,
    source  => $source,
    require => Class['tftp'],
  }
}