Defined Type: dovecot::file

Defined in:
manifests/file.pp

Summary

Simple file resource that notifies the dovecot service.

Overview

Parameters:

  • content (String)

    The content of the file.

  • group (Variant[Integer, String]) (defaults to: 0)

    The group that should own the file.

  • mode (Variant[Integer, String]) (defaults to: '0644')

    The permissions for the file.

  • owner (Variant[Integer, String]) (defaults to: 'root')

    The user that should own the file.

  • path (Stdlib::Absolutepath)

    The target path for the file.

Author:

  • Bernhard Frauendienst <puppet@nospam.obeliks.de>



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/file.pp', line 20

define dovecot::file (
  String $content,
  Stdlib::Absolutepath $path,
  Variant[Integer, String] $group = 0,
  Variant[Integer, String] $mode = '0644',
  Variant[Integer, String] $owner = 'root',
) {
  file { "dovecot file ${title}":
    path    => $path,
    owner   => $owner,
    group   => $group,
    mode    => $mode,
    content => $content,
    require => Class['dovecot::install'],
    notify  => Class['dovecot::service'],
  }
}