init.pp

Jump To …
deploy.pp extract.pp file.pp init.pp

# init.pp |
--- | ---
¶ ### Class: staging This module manages staging and extraction of files from various sources. #### Actions: Creates the root staging directory. By default files will be created in a subdirectory matching the caller_module_name. /opt/staging/
              |-- puppet
              |   `-- puppet.enterprise.2.0.tar.gz
              `-- tomcat
                  `-- tomcat.5.0.tar.gz
### Parameters: [path]: staging directory filepath (default: ‘/opt/staging’) [owner]: staging directory owner (default: ‘0’) [group]: staging directory group (default: ‘0’) [mode]: staging directory permission (default: ‘0755’) ### Usage:
    include staging
    class staging (
      $path  = '/opt/staging',
      $owner = '0',
      $group = '0',
      $mode  = '0755'
    ) {

      file { $path:
        ensure => directory,
        owner  => $owner,
        group  => $group,
        mode   => $mode,
      }

    }