Defined Type: sslcert::ocsp::hook

Defined in:
modules/sslcert/manifests/ocsp/hook.pp

Overview

Parameters:

  • ensure (Any) (defaults to: present)
  • source (Any) (defaults to: undef)
  • content (Any) (defaults to: undef)


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'modules/sslcert/manifests/ocsp/hook.pp', line 27

define sslcert::ocsp::hook(
  $ensure=present,
  $source=undef,
  $content=undef,
) {
    require sslcert::ocsp::init

    validate_ensure($ensure)

    file { "/etc/update-ocsp.d/hooks/${title}":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        source  => $source,
        content => $content,
    }
}