Puppet Class: archive::staging

Inherits:
archive::params
Defined in:
manifests/staging.pp

Summary

Backwards-compatibility class for staging module

Overview

Parameters:

  • path (String) (defaults to: $archive::params::path)

    Absolute path of staging directory to create

  • owner (String) (defaults to: $archive::params::owner)

    Username of directory owner

  • group (String) (defaults to: $archive::params::group)

    Group of directory owner

  • mode (String) (defaults to: $archive::params::mode)

    Mode (permissions) on staging directory



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/staging.pp', line 13

class archive::staging (
  String $path  = $archive::params::path,
  String $owner = $archive::params::owner,
  String $group = $archive::params::group,
  String $mode  = $archive::params::mode,
) inherits archive::params {
  include 'archive'

  if !defined(File[$path]) {
    file { $path:
      ensure => directory,
      owner  => $owner,
      group  => $group,
      mode   => $mode,
    }
  }
}