voxpupuli / puppet-archive

Compressed archive file download and extraction with native types/providers for Windows and Unix
https://forge.puppet.com/puppet/archive
Apache License 2.0
59 stars 176 forks source link

If the package exists on the server, but not extracted, then it does not extract the package to target path, although you specfied the extract to true and specified the extract path. #441

Open zengyongjie opened 3 years ago

zengyongjie commented 3 years ago

my code:

    archive { "/tmp/iothub_${iotgateway::iot_version}.tar.gz":
      ensure          => present,
      source          => "https://fileserver/iothub_${iotgateway::iot_version}.tar.gz",
      extract         => true,
      creates         => "${iotgateway::iot_workspace}/${iotgateway::iot_version}",
      extract_path    => $iotgateway::iot_workspace,
      checksum_type   => md5,
      checksum_url    => "https://filerserver/iothub_${iotgateway::iot_version}.tar.gz.md5",
      checksum_verify => true
    }
  }

when the package exists on the server, It will not extract to the extract_path.

It just ensured one of the action of this module,