]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/staging/manifests/init.pp
add nanliu/staging to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / staging / manifests / init.pp
1 #   This module manages staging and extraction of files from various sources.
2 #
3 # #### Actions:
4 #
5 #   Creates the root staging directory. By default files will be created in a subdirectory matching the caller_module_name.
6 #
7 #      /opt/staging/
8 #                 |-- puppet
9 #                 |   `-- puppet.enterprise.2.0.tar.gz
10 #                 `-- tomcat
11 #                     `-- tomcat.5.0.tar.gz
12 #
13 class staging (
14   $path      = $staging::params::path,     #: staging directory filepath
15   $owner     = $staging::params::owner,    #: staging directory owner
16   $group     = $staging::params::group,    #: staging directory group
17   $mode      = $staging::params::mode,     #: staging directory permission
18   $exec_path = $staging::params::exec_path #: executable default path
19 ) inherits staging::params {
20
21   # Resolve conflict with pe_staging
22   if !defined(File[$path]) {
23     file { $path:
24       ensure => directory,
25       owner  => $owner,
26       group  => $group,
27       mode   => $mode,
28     }
29   }
30
31 }