voxpupuli/puppet-archive

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.

zengyongjie opened this issue · 0 comments

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,