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
|
#
# @summary Backwards-compatibility class for staging module
#
# @param path
# Absolute path of staging directory to create
# @param owner
# Username of directory owner
# @param group
# Group of directory owner
# @param mode
# Mode (permissions) on staging directory
#
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,
}
}
}
|