-
-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: all
- Ruby: all
- Distribution: Windows, but probably all
- Module version: latest
How to reproduce (e.g Puppet code you use)
archive { 'some_pkg':
path => $some_pkg,
source => $some_pkg_remote,
checksum => $checksum,
checksum_type => 'sha256',
cleanup => true,
extract => true,
extract_path => $tools_dir::tools_dir,
require => [
Class['sevenzip'],
Class['tools_dir'],
],
}What are you seeing
Rolling out first version of archive some_pkg works fine
Rolling out second version (which has different file name AND checksum) replaces first version, as expected
Trying to roll out first version again (because second version has a bug) does nothing
Also, the local copies of the archives, under path are not removed, despite cleanup => true.
What behaviour did you expect instead
First version should replace second version, no local copy should exist after Puppet agent run
Output log
Well, no action, no log
Additional information
The only way to achieve a rollback to the first version is to write a trigger file containing the checksum, have an exec, subscribed to that file, which removes the extracted directory under extract_path and in turn let archive require that exec
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels