modify 3rdparty/modules/certregen/manifests/client to set the user and group that...
[mirror/dsa-puppet.git] / 3rdparty / modules / archive / README.md
index d90725e..6405d95 100644 (file)
@@ -40,7 +40,7 @@ cleanup. The benefits over existing modules such as
 * Follows 302 redirect and propagate download failure.
 * Optional checksum verification of archive files.
 * Automatic dependency to parent directory.
-* Support Windows file extraction via 7zip or PowerShell (Zip file only).
+* Support Windows file extraction via 7zip.
 * Able to cleanup archive files after extraction.
 
 This module is compatible with [camptocamp/archive](https://forge.puppet.com/camptocamp/archive).
@@ -48,12 +48,9 @@ For this it provides compatibility shims.
 
 ## Setup
 
-On Windows 7zip is required to extract all archives except zip files which will
-be extracted with PowerShell if 7zip is not available (requires 
-`System.IO.Compression.FileSystem`/Windows 2012+). Windows clients can install
-7zip via `include '::archive'`. On posix systems, curl is the default provider. 
-The default provider can be overwritten by configuring resource defaults in 
-site.pp:
+The module requires 7zip for windows clients which is installed via `include
+'::archive'`. On posix systems, curl is the default provider. The default
+provider can be overwritten by configuring resource defaults in site.pp:
 
 ```puppet
 Archive {
@@ -118,27 +115,6 @@ archive { '/tmp/test100k.db':
 }
 ```
 
-If you want to extract a `.tar.gz` file:
-
-```puppet
-$install_path        = '/opt/wso2'
-$package_name        = 'wso2esb'
-$package_ensure      = '4.9.0'
-$repository_url      = 'http://company.com/repository/wso2'
-$archive_name        = "${package_name}-${package_ensure}.tgz"
-$wso2_package_source = "${repository_url}/${archive_name}"
-
-archive { $archive_name:
-  path         => "/tmp/${archive_name}",
-  source       => $wso2_package_source,
-  extract      => true,
-  extract_path => $install_path,
-  creates      => "${install_path}/${package_name}-${package_ensure}",
-  cleanup      => true,
-  require      => File['wso2_appdir'],
-}
-```
-
 ### Puppet URL
 
 Since march 2017, the Archive type also supports puppet URLs. Here is an example